summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xw3watch6
1 files 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
}