aboutsummaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'trunk')
-rwxr-xr-xtrunk/src/simplaret6
1 files changed, 3 insertions, 3 deletions
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"