From 9bef6ff493455868cd904addd4ec28d6981edcc9 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 30 Sep 2011 07:17:29 +0200 Subject: [PATCH] do only ONE 30sec pause if an error happened --- update-cvarcount.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.39.2