X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=blobdiff_plain;f=ls-not-pushed-carefully;h=85fc57c27396fc30aa022e970ed098500fd753f0;hp=266e4cad675142c627edd96827d703c6817c3f5b;hb=5ccc965312be1a2fe3620b653041e529e9f79290;hpb=820288d1b046f3023b4f5267630e3d5307c90981 diff --git a/ls-not-pushed-carefully b/ls-not-pushed-carefully index 266e4ca..85fc57c 100755 --- a/ls-not-pushed-carefully +++ b/ls-not-pushed-carefully @@ -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"'