]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - all
fix yet another ./all typo
[xonotic/xonotic.git] / all
diff --git a/all b/all
index 3b288454c901e1bad9821817b5448543a38b17f8..cc26e5be4dcd64b745e4095638290194e3a1e3fb 100755 (executable)
--- a/all
+++ b/all
@@ -400,7 +400,7 @@ case "$cmd" in
                        rem=`git config "branch.$r.remote" || echo origin`
                        bra=`git config "branch.$r.merge" || echo "$r"`
                        upstream="$rem/$bra"
                        rem=`git config "branch.$r.remote" || echo origin`
                        bra=`git config "branch.$r.merge" || echo "$r"`
                        upstream="$rem/$bra"
-                       if ! [ git rev-parse "$upstream" ]; then
+                       if ! git rev-parse "$upstream" >/dev/null 2>&1; then
                                upstream="`repobranch "$d"`"
                        fi
                        if git log "$upstream".."$r" | grep .; then
                                upstream="`repobranch "$d"`"
                        fi
                        if git log "$upstream".."$r" | grep .; then