From c685ba92cbc12bba5ec9ba8ee174eb5fb11e26a9 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 7 Jun 2010 19:36:47 +0200 Subject: fix garbage collector --- w3watch | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/w3watch b/w3watch index 2c3fbe3..71d4951 100755 --- a/w3watch +++ b/w3watch @@ -101,11 +101,9 @@ collectGarbage() { configSum=$(echo "$configEntry" | sha1sum | awk '{print $1;}') if [ "$cacheSum" == "$configSum" ]; then - continue 2 + return 1 fi - done - - rm -f $cacheEntry + done && rm -f $cacheEntry done } -- cgit v1.2.3-24-g4f1b