X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=update-cvarcount.sh;h=0024010420e5a06168e479f2e20046db328b3f7c;hb=cb2a5a702acaf1cdad6efff7af4cc149aeeaec9e;hp=b7c87a34a63ff22494dbecbb418dc9fd25cd7d74;hpb=49a1b0a79699721877d9630fc598574bb0ac91b2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/update-cvarcount.sh b/update-cvarcount.sh index b7c87a34a..002401042 100755 --- a/update-cvarcount.sh +++ b/update-cvarcount.sh @@ -1,5 +1,6 @@ #!/bin/sh +errord=false countw=`awk '/^seta? g_/ { print $2; }' balanceXonotic.cfg | sort -u | tr -d '\r' | git hash-object --stdin | cut -c 1-32` for b in balance*.cfg; do countb=`awk '/^seta? g_/ { print $2; }' "$b" | sort -u | tr -d '\r' | git hash-object --stdin | cut -c 1-32` @@ -14,7 +15,10 @@ for b in balance*.cfg; do awk '/^seta? g_/ { print $2; }' "$b" | sort -u | tr -d '\r' > "$B" diff "$A" "$B" | grep '^[<>]' | sort rm -f "$A" "$B" - echo "Please wait for 30 seconds, so you have had enough time to read this..." - sleep 30 + errord=true fi done +if $errord; then + echo "Please wait for 30 seconds, so you have had enough time to read this..." + sleep 30 +fi