MT#56190 Adjust scripts for shellcheck v0.9.0

Fixing issues reported by new shellcheck v0.9.0:

1) SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
   https://www.shellcheck.net/wiki/SC2317
   (new feature as of shellcheck v0.9.0)

2) SC2086 (info): Double quote to prevent globbing and word splitting.
   https://www.shellcheck.net/wiki/SC2086
   (behavior change with shellcheck v0.9.0)

Change-Id: I73d50157f72b772c381cf1bff497079133bc6d09
mr11.2
Michael Prokop 4 years ago
parent 6d91f4232d
commit a456ee2cec

@ -273,7 +273,7 @@ check_shared_storage() {
else
log_info "Outstanding pull actions have been identified (see ACTION_NEEDED), exiting."
log_info "TIP: '--no-action-failure' forces execution within 'apply' anyway (use with care!)."
return $RC
return "$RC"
fi
}

@ -38,6 +38,7 @@ log_info() {
}
# info without ending newline
# shellcheck disable=SC2317
log_info_n() {
logger -t ngcpcfg --id="${NGCPCFG_PID}" -- "$*"
console_output "$*"
@ -53,6 +54,7 @@ log_error() {
console_output "Error: $*\n" >&2
}
# shellcheck disable=SC2317
log_debug() {
if [ -n "${DEBUG:-}" ] ; then
logger -t ngcpcfg --id="${NGCPCFG_PID}" -- "Debug: $*"

Loading…
Cancel
Save