From: hno <> Date: Thu, 29 Sep 2005 04:08:39 +0000 (+0000) Subject: almost.. X-Git-Tag: SQUID_3_0_PRE4~591 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9cc5c72819ced7ee7ff0a5109aed6fe9f5980fc5;p=thirdparty%2Fsquid.git almost.. --- diff --git a/mksnapshot-cron.sh b/mksnapshot-cron.sh index d8d6c8bba3..2eb5d80512 100755 --- a/mksnapshot-cron.sh +++ b/mksnapshot-cron.sh @@ -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