]> git.nbdom.net Git - nb.git/commitdiff
mn-update
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 9 Jul 2015 13:55:07 +0000 (14:55 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 9 Jul 2015 13:55:07 +0000 (14:55 +0100)
bin/nb-update

index 79a35d5ff0a5b8db7f8a18f3b8f71a3a2ced9218..d756fd373ff23ddea5eba07931907495361f737a 100755 (executable)
@@ -38,9 +38,9 @@ for repo in \
   echo ">git pull $repo (user=$user)"
 
   if [ "$USER" == "$user" ]; then
-    git pull
+    timeout 30 git pull
   else
-    timeout 10 su $user -c "cd \"$repo\" && git pull"
+    timeout 30 su $user -c "cd \"$repo\" && git pull"
   fi
 
   ret=$?