X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=update-cvarcount.sh;h=b7c87a34a63ff22494dbecbb418dc9fd25cd7d74;hb=6665fa0bf0660e15f2d96b13564d759b2f5bddf0;hp=e322501fce9be816a5cc09e6a25891b47bb9d573;hpb=a271dac885ffbfb3f944f942970333cfeb2fb4f8;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/update-cvarcount.sh b/update-cvarcount.sh index e322501fc..b7c87a34a 100755 --- a/update-cvarcount.sh +++ b/update-cvarcount.sh @@ -6,12 +6,15 @@ for b in balance*.cfg; do if [ "$countw" != "$countb" ]; then echo "Mismatch between balanceXonotic.cfg and $b. Aborting." echo "Differences are:" - A=`mktemp` - B=`mktemp` + echo "< missing in $b" + echo "> must get removed from $b" + A=`mktemp || echo a.tmp` + B=`mktemp || echo b.tmp` awk '/^seta? g_/ { print $2; }' balanceXonotic.cfg | sort -u | tr -d '\r' > "$A" awk '/^seta? g_/ { print $2; }' "$b" | sort -u | tr -d '\r' > "$B" diff "$A" "$B" | grep '^[<>]' | sort rm -f "$A" "$B" - exit 1 + echo "Please wait for 30 seconds, so you have had enough time to read this..." + sleep 30 fi done