make imagesums less verbose by default

This commit is contained in:
cd-builder user 2010-07-05 14:09:23 +00:00
parent 8f45f72033
commit 6b44b8cdc1
1 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,12 @@
#!/bin/bash #!/bin/bash
VERBOSE=0
if [ "$1" = "-v" ] ; then
VERBOSE=1
shift
fi
cd $1 cd $1
if [ "$2"x != ""x ] ; then if [ "$2"x != ""x ] ; then
@ -13,7 +20,9 @@ fi
for SUM in $CHECKSUMS; do for SUM in $CHECKSUMS; do
UPSUM=`echo $SUM | tr 'a-z' 'A-Z'` UPSUM=`echo $SUM | tr 'a-z' 'A-Z'`
FILE=$UPSUM"SUMS"$EXT FILE=$UPSUM"SUMS"$EXT
echo "Clearing $FILE" if [ $VERBOSE -eq 1 ] ; then
echo "Clearing $FILE"
fi
:> $FILE :> $FILE
done done