projects
/
dotfiles
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cd8aee8
)
Add action argument to doftiles helper script
author
Julien Valroff
<julien@kirya.net>
Sat, 30 May 2015 12:21:56 +0000
(14:21 +0200)
committer
Julien Valroff
<julien@kirya.net>
Sat, 30 May 2015 12:21:56 +0000
(14:21 +0200)
update-dotfiles
patch
|
blob
|
history
diff --git
a/update-dotfiles
b/update-dotfiles
index
847448b
..
f1a38a6
100755
(executable)
--- a/
update-dotfiles
+++ b/
update-dotfiles
@@
-1,9
+1,17
@@
#!/bin/sh
dotfiles_location="$HOME/.dotfiles"
+if [ $# -eq 0 ]; then
+ action="pull"
+else
+ action=$1
+fi
+
+
for i in $(ls "$dotfiles_location"); do
echo -n "Updating $i: "
cd "$dotfiles_location"/"$i"
- git pull
+ git $action
+
done