summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/garbage.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/garbage.sh b/lib/garbage.sh
index 2862ad9..dcec7ed 100644
--- a/lib/garbage.sh
+++ b/lib/garbage.sh
@@ -32,6 +32,9 @@ collect_garbage()
cur_time=$(date '+%s')
for garbage in "${archive}/.db/garbage/"*; do
+ if [ ! -f "${garbage}" ]; then
+ continue
+ fi
gar_time=${garbage##*/}
if [ ${cur_time} -lt ${gar_time} ]; then
break