diff options
author | Michael Biebl <mbiebl@gmail.com> | 2009-07-06 20:22:52 +0200 |
---|---|---|
committer | Michael Biebl <mbiebl@gmail.com> | 2009-07-06 20:22:52 +0200 |
commit | 6691c51d58951c328e08e50087b354ceb2c4f3db (patch) | |
tree | ae895b4898f567454456f9b84444eb4fa7958178 | |
parent | f3821f3479a58a8453bf9219fb5933fd99b5c1a8 (diff) |
Revert "Fix a bashism ('==')"
This reverts commit f3821f3479a58a8453bf9219fb5933fd99b5c1a8.
The fix was actually bogus and a false-positive of checkbashisms.
-rw-r--r-- | pm/functions.in | 2 |
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 |