We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6be55f commit ddfa73eCopy full SHA for ddfa73e
test/stubs/stub
@@ -28,9 +28,7 @@ acquire_lock() {
28
local acquired=
29
while (( SECONDS <= start + $acquire_timeout )); do
30
31
- set -o noclobber
32
- echo -n > "$STUB_LOCKFILE" 2>/dev/null && acquired=1
33
- set +o noclobber
+ ( set -o noclobber; echo -n >"$STUB_LOCKFILE" ) 2>/dev/null && acquired=1
34
35
if [[ -n $acquired ]]; then
36
trap release_lock EXIT
0 commit comments