X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=ls-not-pushed-carefully;h=85fc57c27396fc30aa022e970ed098500fd753f0;hb=5ccc965312be1a2fe3620b653041e529e9f79290;hp=266e4cad675142c627edd96827d703c6817c3f5b;hpb=bd017bfadeaff71f34dbb38b1eac322ef52b7483;p=git-scripts.git 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"'