summaryrefslogtreecommitdiff
path: root/pm
diff options
context:
space:
mode:
authorMichael Biebl <mbiebl@gmail.com>2009-07-06 20:22:52 +0200
committerMichael Biebl <mbiebl@gmail.com>2009-07-06 20:22:52 +0200
commit6691c51d58951c328e08e50087b354ceb2c4f3db (patch)
treeae895b4898f567454456f9b84444eb4fa7958178 /pm
parentf3821f3479a58a8453bf9219fb5933fd99b5c1a8 (diff)
Revert "Fix a bashism ('==')"
This reverts commit f3821f3479a58a8453bf9219fb5933fd99b5c1a8. The fix was actually bogus and a false-positive of checkbashisms.
Diffstat (limited to 'pm')
-rw-r--r--pm/functions.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/functions.in b/pm/functions.in
index b72a449..bd0705c 100644
--- a/pm/functions.in
+++ b/pm/functions.in
@@ -28,7 +28,7 @@ spin_lock()
# $2 = optional timeout
local elapsed=0
while ! try_lock $1; do
- [ "x$2" != "x" ] && [ $(( $elapsed = $2 )) -ne 0 ] && return 1
+ [ "x$2" != "x" ] && [ $(( $elapsed == $2 )) -ne 0 ] && return 1
elapsed=$(($elapsed + 1))
sleep 1;
done