Revert "Remove CM_ONESHOT-specific logic in flock failure checks"
This reverts commit 728d242d3c
.
This commit is contained in:
parent
a85f8998b4
commit
6825c302dc
10
clipmenud
10
clipmenud
|
@ -142,8 +142,14 @@ while true; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! flock -x -w "$lock_timeout" "$lock_fd"; then
|
if ! flock -x -w "$lock_timeout" "$lock_fd"; then
|
||||||
printf 'ERROR: %s\n' 'Timed out waiting for lock' >&2
|
if (( CM_ONESHOT )); then
|
||||||
exit 1
|
printf 'ERROR: %s\n' 'Timed out waiting for lock' >&2
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
printf 'ERROR: %s\n' \
|
||||||
|
'Timed out waiting for lock, skipping this run' >&2
|
||||||
|
continue
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for selection in "${cm_selections[@]}"; do
|
for selection in "${cm_selections[@]}"; do
|
||||||
|
|
Loading…
Reference in a new issue