summaryrefslogtreecommitdiffstats
path: root/src/garbage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/garbage.sh')
-rw-r--r--src/garbage.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/garbage.sh b/src/garbage.sh
index 7d4fac5..118bce1 100644
--- a/src/garbage.sh
+++ b/src/garbage.sh
@@ -60,14 +60,14 @@ collect_garbage()
fi
while read -r dirs file; do
info_v "$(get_msg 'collecting_garbage_file')" "${file}"
- rm -f "${base_dir}/${file}"
+ rm -f -- "${base_dir}/${file}"
while [ ${dirs} -gt 0 ]; do
file="${file%/*}"
try_rmdir "${base_dir}/${file}" || :
dirs=$((${dirs} - 1))
done
done <"${garbage}"
- rm -f "${garbage}"
+ rm -f -- "${garbage}"
done
return 0
@@ -84,7 +84,7 @@ mark_pool_garbage()
time=$(_time)
time=$((${time} + ${conf_pool_gc_delay}))
- mkdir -p "${base_dir}/.db/garbage"
+ mkdir -p -- "${base_dir}/.db/garbage"
printf '2 %s\n' "${file}" >>"${base_dir}/.db/garbage/${time}"
return 0