exec "`dirname \"$0\"`"/do-all \
'test "$g" = "$d/.git" || continue; cd "$d" &&' \
- 'test -n "`git status --branch --short | grep "ahead\|behind"`" &&
- echo "$d"'
+ 'git status --branch --short | grep -q "ahead\|behind" && echo "$d"'
"$prog_dir"/do-all \
'test "$g" = "$d/.git" || continue;' \
'rsync -aW --del --protocol=28 "$d" "$LSTMP" && cd "$LSTMP/$b" &&' \
- 'test -n "`git status --branch --short | grep "ahead\|behind"`" &&
- echo "$d"'
+ 'git status --branch --short | grep -q "ahead\|behind" && echo "$d"'