summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Biebl <mbiebl@gmail.com>2009-07-01 17:33:08 +0200
committerMichael Biebl <mbiebl@gmail.com>2009-07-01 17:33:08 +0200
commitf3821f3479a58a8453bf9219fb5933fd99b5c1a8 (patch)
tree13a6a508981a41072d11abaae4f6d0451a39fed3
parentd517615e97a4180854418369b54a65adfed6ddca (diff)
Fix a bashism ('==')
See Debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530164
-rw-r--r--pm/functions.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm/functions.in b/pm/functions.in
index bd0705c..b72a449 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