From cc9d8bbbc58f2a7ef5b99d98f817a273330b12d5 Mon Sep 17 00:00:00 2001 From: rhatto Date: Tue, 17 Apr 2007 12:56:08 +0000 Subject: simplaret_purge fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@352 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/simplaret | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'trunk') diff --git a/trunk/src/simplaret b/trunk/src/simplaret index f1ebbd5..51075bd 100755 --- a/trunk/src/simplaret +++ b/trunk/src/simplaret @@ -402,9 +402,9 @@ function simplaret_purge { local mtime mtime_message which and_patches - if [ "$2" == "-w" ] && [ ! -z "$3" ]; then - mtime="-mtime +`echo "$3*7" | bc -l`" - mtime_message="older than $3 weeks" + if [ "$1" == "-w" ] && [ ! -z "$2" ]; then + mtime="-mtime +`echo "$2*7" | bc -l`" + mtime_message="older than $2 weeks" elif [ "$SIMPLARET_PURGE_WEEKS" != "0" ]; then mtime="-mtime +`echo "$SIMPLARET_PURGE_WEEKS*7" | bc -l`" mtime_message="older than $SIMPLARET_PURGE_WEEKS weeks" -- cgit v1.2.3