aboutsummaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-17 12:56:08 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-17 12:56:08 +0000
commitcc9d8bbbc58f2a7ef5b99d98f817a273330b12d5 (patch)
treeed3c2a23a644683daa448c2639b3125b6a87175d /trunk
parent19327a4db1559429039c8d38e0c6568c235f953d (diff)
downloadsimplepkg-cc9d8bbbc58f2a7ef5b99d98f817a273330b12d5.tar.gz
simplepkg-cc9d8bbbc58f2a7ef5b99d98f817a273330b12d5.tar.bz2
simplaret_purge fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@352 04377dda-e619-0410-9926-eae83683ac58
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"