From: Johannes Truschnigg Date: Sun, 4 Sep 2022 09:18:43 +0000 (+0200) Subject: Implement a few shellcheck-suggested fixes, round 2 X-Git-Url: https://johannes.truschnigg.info/gitweb/?a=commitdiff_plain;p=sqm_lagthrottle Implement a few shellcheck-suggested fixes, round 2 --- diff --git a/sqm_lagthrottle.sh b/sqm_lagthrottle.sh index dd23423..bc7bda7 100755 --- a/sqm_lagthrottle.sh +++ b/sqm_lagthrottle.sh @@ -115,7 +115,7 @@ then set +x if [ ${_cfg_ok} -ne 0 ] then - printf 'FATAL: Configuration delta in "%s" could not be evaluated without errors."\n' >&2 + printf 'FATAL: Configuration delta in "%s" could not be evaluated without errors."\n' "${SQML_CFGFILE}" >&2 exit 1 fi PS4="${_ps4}" @@ -272,7 +272,7 @@ _restore_saved_bw() { set -u -trap ':' SIGINT SIGTERM +trap ':' INT TERM fping --loop --retry=1 --size=1280 --period="${PING_INTERVAL}" --random ${PING_PEERS} 2>/dev/null \ | awk \