diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2014-04-11 10:18:39 -0400 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2014-04-11 10:19:01 -0400 |
commit | ca57469594d9ad087c45744e9a9b6cd77b11fcfa (patch) | |
tree | 3978285fafe72bff86d8b2f2a31bbb2711904a20 /lock.sh | |
parent | ff9677bfaf16a2bef47057c3b4942dbf5c4e5268 (diff) |
lock.sh: create new lock one old lock is gone
Diffstat (limited to 'lock.sh')
-rwxr-xr-x | lock.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,7 +11,7 @@ lock() { echo "lock $1 found, waiting for unlock" >&2 while true; do sleep 2; - if [[ ! -d "$1" ]]; then + if mkdir "$1" &>/dev/null; then return fi done |