diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-25 21:00:06 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-25 21:00:06 (EDT) |
commit | 46fbc8bacfff66fdd5d6a7bade6ebb816e0dd792 (patch) | |
tree | 4f4e47825824507f37e8caec18a8ff85f145b652 /src | |
parent | 0f5dc89d0772eba2d1a06a57a7d3aeb69146a5a2 (diff) |
mutex_unlock(), mutex_is_unlockable(): Delimit cmd operands
Diffstat (limited to 'src')
-rw-r--r-- | src/mutex.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mutex.sh b/src/mutex.sh index be63d96..32a2469 100644 --- a/src/mutex.sh +++ b/src/mutex.sh @@ -44,13 +44,13 @@ mutex_unlock() { local mutex="${1}" - rm -f "${mutex}" + rm -f -- "${mutex}" } mutex_is_unlockable() { local mutex="${1}" - [ "x$(cat "${mutex}" 2>/dev/null)" = "x${$}" ] || return ${?} + [ "x$(cat -- "${mutex}" 2>/dev/null)" = "x${$}" ] || return ${?} return 0 } |