]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - tx.sh
Update default video settings
[xonotic/xonotic-data.pk3dir.git] / tx.sh
diff --git a/tx.sh b/tx.sh
index c2e9f3a5f5d00a5e41bbccd9db190182f785d70f..271f1cc75a82f1dbfbe48cbddd75a1c363fc8547 100644 (file)
--- a/tx.sh
+++ b/tx.sh
@@ -63,13 +63,15 @@ if $sync_po; then
                                cp "$tcurfile" "$gnewfile"
                        else
                                if ! diff -u "$goldfile" "$gnewfile" | patch "$tcurfile"; then
-                                       while :; do
-                                               vim -o "$tcurfile.rej" "$tcurfile"
-                                               echo "OK?"
-                                               read -r OK || exit 1
-                                               [ x"$OK" != x"y" ] || break
-                                       done
-                                       rm -f "$tcurfile.rej"
+                                       if [ -z "$BATCH" ]; then
+                                               while :; do
+                                                       vim -o "$tcurfile.rej" "$tcurfile"
+                                                       echo "OK?"
+                                                       read -r OK || exit 1
+                                                       [ x"$OK" != x"y" ] || break
+                                               done
+                                               rm -f "$tcurfile.rej"
+                                       fi
                                fi
                                msgmerge -N -F -U "$tcurfile" common.pot
                                cp "$tcurfile" "$gnewfile"