]> git.phdru.name Git - git-scripts.git/blobdiff - ls-not-pushed-carefully
Test grep error code, not output
[git-scripts.git] / ls-not-pushed-carefully
index 266e4cad675142c627edd96827d703c6817c3f5b..85fc57c27396fc30aa022e970ed098500fd753f0 100755 (executable)
@@ -10,5 +10,4 @@ rm -rf "$LSTMP" && mkdir "$LSTMP" &&
 "$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"'