summaryrefslogtreecommitdiffstats
path: root/src/main.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/main.sh
parent4d4570f81329f3e99cf0ce1b8ed61d5b9cb39026 (diff)
Make redirected FDs explicit
Diffstat (limited to 'src/main.sh')
-rw-r--r--src/main.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.sh b/src/main.sh
index 5ee0027..17ff091 100644
--- a/src/main.sh
+++ b/src/main.sh
@@ -107,7 +107,7 @@ _lock()
{
mkdir -p -- "${base_dir}/.db"
lock="${base_dir}/.db/lock"
- if ! (set -C; printf '%d\n' "${$}" >"${lock}") 2>/dev/null; then
+ if ! (set -C; printf '%d\n' "${$}" 1>"${lock}") 2>/dev/null; then
error 2 "$(get_msg 'lock_fail')"
fi
}