]> git.phdru.name Git - git-scripts.git/commitdiff
Fix `while read`
authorOleg Broytman <phd@phdru.name>
Fri, 7 Oct 2016 13:08:18 +0000 (16:08 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 7 Oct 2016 13:08:18 +0000 (16:08 +0300)
pull-usrlocalsrc

index f8654c0839ce407c10f2f084a4741c29906a1157..41cfaab1a2aa8e91b0d33ab855be61ab2d0e6bf4 100755 (executable)
@@ -3,7 +3,6 @@
 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 --all || exit 1
+while read d; do
 done