Skip to content

Commit ddfa73e

Browse files
committed
fix senamtics
1 parent d6be55f commit ddfa73e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/stubs/stub

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ acquire_lock() {
2828
local acquired=
2929
while (( SECONDS <= start + $acquire_timeout )); do
3030

31-
set -o noclobber
32-
echo -n > "$STUB_LOCKFILE" 2>/dev/null && acquired=1
33-
set +o noclobber
31+
( set -o noclobber; echo -n >"$STUB_LOCKFILE" ) 2>/dev/null && acquired=1
3432

3533
if [[ -n $acquired ]]; then
3634
trap release_lock EXIT

0 commit comments

Comments
 (0)