Fix shellcheck globbing warning
This commit is contained in:
parent
ca2e82815a
commit
34503cfbd8
1 changed files with 3 additions and 3 deletions
|
@ -538,11 +538,11 @@ do-backup () {
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ "$LOCK_FILE" != "" ]]; then
|
if [[ "$LOCK_FILE" != "" ]]; then
|
||||||
TIMEOUT_OPTION=""
|
TIMEOUT_OPTION=()
|
||||||
if [[ "$LOCK_FILE_TIMEOUT" != "" ]]; then
|
if [[ "$LOCK_FILE_TIMEOUT" != "" ]]; then
|
||||||
TIMEOUT_OPTION="-w $LOCK_FILE_TIMEOUT"
|
TIMEOUT_OPTION=("-w" "$LOCK_FILE_TIMEOUT")
|
||||||
fi
|
fi
|
||||||
(if ! flock $TIMEOUT_OPTION --no-fork 200; then
|
(if ! flock "${TIMEOUT_OPTION[@]}" --no-fork 200; then
|
||||||
log-fatal "Could not acquire lock on lock file: $LOCK_FILE"
|
log-fatal "Could not acquire lock on lock file: $LOCK_FILE"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue