]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
almost..
authorhno <>
Thu, 29 Sep 2005 04:08:39 +0000 (04:08 +0000)
committerhno <>
Thu, 29 Sep 2005 04:08:39 +0000 (04:08 +0000)
mksnapshot-cron.sh

index d8d6c8bba39d7f63cdb2926eee57068f1188bda8..2eb5d8051259ad4a44dbe1c22e08dbbd266c830d 100755 (executable)
@@ -43,7 +43,7 @@ make_snapshot()
 
     # cleanup old snapshots
     ls $dst/*-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$type | sed -e 's/.*\(-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'$type'\)/\1/' | sort -r | tail +$save | while read f; do
-       rm -f *-$f
+       rm -f $dst/*-$f
     done
   done