aboutsummaryrefslogtreecommitdiff
path: root/lock.sh
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-04-11 08:14:19 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2014-04-11 08:14:19 -0400
commit7afe66fc6864c7b7a5fc1b0379cf2be29a22c057 (patch)
tree5beaf3d3281d4c57388b58a9d9d8a14225e8f76d /lock.sh
parent0d9f550bb48f49c11bbf7220d74b9453731149c6 (diff)
parented2589219056458a20aa399d128e06394f632e15 (diff)
Merge pull request #1 from mar77i/master
Obvious fixes.
Diffstat (limited to 'lock.sh')
-rwxr-xr-xlock.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lock.sh b/lock.sh
index 22191fe..9a9cdd6 100755
--- a/lock.sh
+++ b/lock.sh
@@ -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