]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
simplaret_purge fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Tue, 17 Apr 2007 12:56:08 +0000 (12:56 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Tue, 17 Apr 2007 12:56:08 +0000 (12:56 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@352 04377dda-e619-0410-9926-eae83683ac58

trunk/src/simplaret

index f1ebbd568ed1100ac86161614c7345296b4e8bcc..51075bdb7702ffddd477375c3234b60e332ff77e 100755 (executable)
@@ -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"