]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - all
correctly write info.txt
[xonotic/xonotic.git] / all
diff --git a/all b/all
index c1a830f750343884c60982b16864fdbb3fa8bbd7..57d92453a1d1e89e0536081087b16d696a34bdef 100755 (executable)
--- a/all
+++ b/all
@@ -392,9 +392,9 @@ case "$cmd" in
                                        if [ x"$REV" = x"->" ]; then
                                                continue
                                        fi
-                                       if git format-patch -o "$patchdir/$i" "$UPSTREAM".."$BRANCH" | grep .; then
+                                       if git format-patch -o "$patchdir/$i" "$UPSTREAM".."$BRANCH"; then
                                                echo "$d" > "$patchdir/$i/info.txt"
-                                               echo "$BRANCH" > "$patchdir/$i/info.txt"
+                                               echo "$BRANCH" >> "$patchdir/$i/info.txt"
                                                echo "$UPSTREAM" >> "$patchdir/$i/info.txt"
                                                echo "$TRACK" >> "$patchdir/$i/info.txt"
                                                i=$(($i+1))