From 9c97e2737a3465ed07137b8591a9adec85d45351 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 4 Aug 2014 04:05:44 +0400 Subject: [PATCH] Pull all repositories in /usr/local/src --- pull-usrlocalsrc | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 pull-usrlocalsrc 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 -- 2.39.5