diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-10 19:33:12 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-10 19:33:12 (EDT) |
commit | e71a53a49d80ba3cc72e678a00f50c2b5b7ca47e (patch) | |
tree | eebad885711685d2661b90f28d90822a6c060376 /src/garbage.sh | |
parent | ed4542dd2bef766426a40a5d9fd4d86c86a79c18 (diff) |
Add braces to param exps in arith substs
Diffstat (limited to 'src/garbage.sh')
-rw-r--r-- | src/garbage.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/garbage.sh b/src/garbage.sh index 556f3db..4a47b4e 100644 --- a/src/garbage.sh +++ b/src/garbage.sh @@ -64,7 +64,7 @@ collect_garbage() while [ ${dirs} -gt 0 ]; do file="${file%/*}" try_rmdir "${base_dir}/${file}" - dirs=$(($dirs - 1)) + dirs=$((${dirs} - 1)) done done <"${garbage}" rm -f "${garbage}" @@ -81,7 +81,7 @@ mark_pool_garbage() info_v "$(get_msg 'marking_garbage_file')" "${file}" time=$(time) - time=$(($time + $conf_pool_gc_delay)) + time=$((${time} + ${conf_pool_gc_delay})) mkdir -p "${base_dir}/.db/garbage" printf '2 %s\n' "${file}" >>"${base_dir}/.db/garbage/${time}" |