Merge branch 'master' of /git/dotfiles/scripts
authorJulien Valroff <julien@kirya.net>
Mon, 15 Feb 2016 12:36:19 +0000 (13:36 +0100)
committerJulien Valroff <julien@kirya.net>
Mon, 15 Feb 2016 12:36:19 +0000 (13:36 +0100)
update-dotfiles

index 847448b..f1a38a6 100755 (executable)
@@ -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