index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-12-02 20:39:58 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-12-02 20:39:58 -0500 |
commit | ad5a0cc59ccf5c0927323db081686f902cbbca28 (patch) | |
tree | f5420c78aa543a110229055d22d27873cc5c4412 /lib | |
parent | 294543f415c50b7fbcee7e9794cda1ba80bf7fd8 (diff) |
-rw-r--r-- | lib/common.sh | 2 |
diff --git a/lib/common.sh b/lib/common.sh index 5204091..932799e 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -113,6 +113,7 @@ lock_open_write() { # Only reopen the FD if it wasn't handed to us if [[ $(readlink -f /dev/fd/$fd) != "${path}.lock" ]]; then + mkdir -p "${path%/*}" eval "exec $fd>${path}.lock" fi @@ -133,6 +134,7 @@ lock_open_read() { # Only reopen the FD if it wasn't handed to us if [[ $(readlink -f /dev/fd/$fd) != "${path}.lock" ]]; then + mkdir -p "${path%/*}" eval "exec $fd>${path}.lock" fi |