projects
/
dotfiles
/
scripts.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add action argument to doftiles helper script
[dotfiles/scripts.git]
/
update-dotfiles
1
#!/bin/sh
2
3
dotfiles_location="$HOME/.dotfiles"
4
if [ $# -eq 0 ]; then
5
action="pull"
6
else
7
action=$1
8
fi
9
10
11
12
for i in $(ls "$dotfiles_location"); do
13
echo -n "Updating $i: "
14
cd "$dotfiles_location"/"$i"
15
git $action
16
17
done