X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=test%2Fcommon.sh;h=0fd3afb9ed3c3f4ae94148c279f3a82c92f6315e;hb=cf1205b5cbea2f0cd6ea710ec16c637df85b647c;hp=7f09867ea9e744df8ae592c0234e6206391cd932;hpb=92009746ef66e8a9a9dc6643845e839e0debaf18;p=mmh diff --git a/test/common.sh b/test/common.sh index 7f09867..0fd3afb 100644 --- a/test/common.sh +++ b/test/common.sh @@ -37,6 +37,7 @@ require_prog() # Some stuff for doing silly progress indicators progress_update() { + test -t 1 || return 0 # supress progress meter if non-interactive THIS="$1" FIRST="$2" LAST="$3" @@ -50,5 +51,6 @@ progress_update() progress_done() { + test -t 1 || return 0 # supress progress meter if non-interactive printf "100%%\n" }