From: Oleg Broytman Date: Mon, 4 Aug 2014 00:05:44 +0000 (+0400) Subject: Pull all repositories in /usr/local/src X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;ds=sidebyside;h=9c97e2737a3465ed07137b8591a9adec85d45351;p=git-scripts.git Pull all repositories in /usr/local/src --- diff --git a/pull-usrlocalsrc b/pull-usrlocalsrc new file mode 100755 index 0000000..2f4c029 --- /dev/null +++ b/pull-usrlocalsrc @@ -0,0 +1,9 @@ +#! /bin/sh + +prog_dir="`dirname \"$0\"`" && + +cat "$prog_dir"/locate-all.list | grep -F /usr/local/src | +while true; do + read d || exit 0 + echo "----- $d -----"; cd "$d" && git pull origin || exit 1 +done