Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/common.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common.sh b/lib/common.sh
index 4cf9944..65d6d15 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -115,7 +115,7 @@ lock_open_write() {
local msg=$3
# Only reopen the FD if it wasn't handed to us
- if [[ $(readlink -f /dev/fd/$fd) != "${path}.lock" ]]; then
+ if [[ "$(readlink -f /dev/fd/$fd)" != "$(readlink -f "${path}.lock")" ]]; then
mkdir -p "${path%/*}"
eval "exec $fd>${path}.lock"
fi
@@ -136,7 +136,7 @@ lock_open_read() {
local msg=$3
# Only reopen the FD if it wasn't handed to us
- if [[ $(readlink -f /dev/fd/$fd) != "${path}.lock" ]]; then
+ if [[ "$(readlink -f /dev/fd/$fd)" != "$(readlink -f "${path}.lock")" ]]; then
mkdir -p "${path%/*}"
eval "exec $fd>${path}.lock"
fi