From 6b44b8cdc14b407d5dd6330f65ffbbef44358e11 Mon Sep 17 00:00:00 2001 From: cd-builder user Date: Mon, 5 Jul 2010 14:09:23 +0000 Subject: [PATCH] make imagesums less verbose by default --- tools/imagesums | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/imagesums b/tools/imagesums index e5882a3e..d360a9db 100755 --- a/tools/imagesums +++ b/tools/imagesums @@ -1,5 +1,12 @@ #!/bin/bash +VERBOSE=0 + +if [ "$1" = "-v" ] ; then + VERBOSE=1 + shift +fi + cd $1 if [ "$2"x != ""x ] ; then @@ -13,7 +20,9 @@ fi for SUM in $CHECKSUMS; do UPSUM=`echo $SUM | tr 'a-z' 'A-Z'` FILE=$UPSUM"SUMS"$EXT - echo "Clearing $FILE" + if [ $VERBOSE -eq 1 ] ; then + echo "Clearing $FILE" + fi :> $FILE done