From: Ben Gras Date: Fri, 12 Aug 2005 17:49:07 +0000 (+0000) Subject: rotate noise X-Git-Tag: v3.1.0~340 X-Git-Url: http://zhaoyanbai.com/repos/%7B%24global.css%7D?a=commitdiff_plain;h=85316cfe5503d9be57ba285066b8a2f5b824541f;p=minix.git rotate noise --- diff --git a/commands/scripts/rotate.sh b/commands/scripts/rotate.sh index f5ca9789e..2c466fd53 100755 --- a/commands/scripts/rotate.sh +++ b/commands/scripts/rotate.sh @@ -9,8 +9,7 @@ then echo "Usage: $0 " fi if [ ! -f "$1" ] -then echo "$1 doesn't exist or isn't a file." - exit 1 +then exit 1 fi if [ "$2" -le 0 ] @@ -19,7 +18,7 @@ then echo "Keep at least 1 copy please." fi k="$2" -$RM "$1.$k" || exit 1 +$RM "$1.$k" 2>/dev/null || exit 1 while [ "$k" -ge 2 ] do prev="`expr $k - 1`" $MV $1.$prev.gz $1.$k.gz 2>/dev/null