summaryrefslogtreecommitdiffstats
path: root/src/garbage.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-14 15:01:37 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-14 15:01:37 (EDT)
commite896f1bd0de35a4c2893f8d7b68028ae6f1c7d23 (patch)
tree900ba669d4791bd0b22ba5b4e6fcabb0f074c005 /src/garbage.sh
parent4d4570f81329f3e99cf0ce1b8ed61d5b9cb39026 (diff)
Make redirected FDs explicit
Diffstat (limited to 'src/garbage.sh')
-rw-r--r--src/garbage.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/garbage.sh b/src/garbage.sh
index 118bce1..04d3980 100644
--- a/src/garbage.sh
+++ b/src/garbage.sh
@@ -66,7 +66,7 @@ collect_garbage()
try_rmdir "${base_dir}/${file}" || :
dirs=$((${dirs} - 1))
done
- done <"${garbage}"
+ done 0<"${garbage}"
rm -f -- "${garbage}"
done
@@ -85,7 +85,7 @@ mark_pool_garbage()
time=$((${time} + ${conf_pool_gc_delay}))
mkdir -p -- "${base_dir}/.db/garbage"
- printf '2 %s\n' "${file}" >>"${base_dir}/.db/garbage/${time}"
+ printf '2 %s\n' "${file}" 1>>"${base_dir}/.db/garbage/${time}"
return 0
}