diff options
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 } |