From 46fbc8bacfff66fdd5d6a7bade6ebb816e0dd792 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 21:00:06 -0400 Subject: mutex_unlock(), mutex_is_unlockable(): Delimit cmd operands --- (limited to 'src') 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 } -- cgit v0.9.1