summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-06-07 19:36:47 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-06-07 19:36:47 +0200
commitc685ba92cbc12bba5ec9ba8ee174eb5fb11e26a9 (patch)
tree3337a67a8d3506a9376dc0fa23591a0741a03066
parent8871d7ffdc1fcd683be9ad155058c0e1538da46e (diff)
downloadw3watch-c685ba92cbc12bba5ec9ba8ee174eb5fb11e26a9.tar.gz
w3watch-c685ba92cbc12bba5ec9ba8ee174eb5fb11e26a9.tar.xz
fix garbage collector
-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
}