Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common.sh')
-rw-r--r--lib/common.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/common.sh b/lib/common.sh
index 70752ff..d2a244f 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -140,6 +140,7 @@ get_full_version() {
lock() {
# Only reopen the FD if it wasn't handed to us
if ! [[ "/dev/fd/$1" -ef "$2" ]]; then
+ mkdir -p "${2%/*}"
eval "exec $1>"'"$2"'
fi
@@ -156,6 +157,7 @@ lock() {
slock() {
# Only reopen the FD if it wasn't handed to us
if ! [[ "/dev/fd/$1" -ef "$2" ]]; then
+ mkdir -p "${2%/*}"
eval "exec $1>"'"$2"'
fi