diff options
author | Patrick 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) |
commit | e896f1bd0de35a4c2893f8d7b68028ae6f1c7d23 (patch) | |
tree | 900ba669d4791bd0b22ba5b4e6fcabb0f074c005 /src/db.sh | |
parent | 4d4570f81329f3e99cf0ce1b8ed61d5b9cb39026 (diff) |
Make redirected FDs explicit
Diffstat (limited to 'src/db.sh')
-rw-r--r-- | src/db.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -53,7 +53,7 @@ db_set_srcver() dir="${base_dir}/feeds/${chan}/${dist}/.db" dir="${dir}/$(hash_name "${source}")/${source}" mkdir -p -- "${dir}" - printf '%s\n' "${srcver}" >"${dir}/srcver" + printf '%s\n' "${srcver}" 1>"${dir}/srcver" return 0 } @@ -112,7 +112,7 @@ db_set_binver() dir="${base_dir}/feeds/${chan}/${dist}/.db" dir="${dir}/$(hash_name "${source}")/${source}/${arch}_${plat}" mkdir -p -- "${dir}" - printf '%s\n' "${binver}" >"${dir}/binver" + printf '%s\n' "${binver}" 1>"${dir}/binver" return 0 } @@ -223,7 +223,7 @@ db_add_package() dir="${base_dir}/pool/$(hash_name "${source}")/${source}/.db" dir="${dir}/${binver}_${arch}_${plat}" mkdir -p -- "${dir}" - printf '%s %s %s\n' "${size}" "${sect}" "${pkg}" >>"${dir}/packages" + printf '%s %s %s\n' "${size}" "${sect}" "${pkg}" 1>>"${dir}/packages" return 0 } @@ -267,7 +267,7 @@ db_inc_references() refs=1 mkdir -p -- "${dir}" fi - printf '%d\n' "${refs}" >"${dir}/references" + printf '%d\n' "${refs}" 1>"${dir}/references" printf '%d\n' "${refs}" return 0 @@ -294,7 +294,7 @@ db_dec_references() if [ ${refs} -eq 0 ]; then rm -f -- "${dir}/references" else - printf '%d\n' "${refs}" >"${dir}/references" + printf '%d\n' "${refs}" 1>"${dir}/references" fi printf '%d\n' "${refs}" |