From e1fbc785fbc92c703ebc6f327277cbf3fe989e38 Mon Sep 17 00:00:00 2001 From: Johannes Truschnigg Date: Sun, 4 Sep 2022 11:18:43 +0200 Subject: [PATCH] Implement a few shellcheck-suggested fixes, round 2 --- sqm_lagthrottle.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 \ -- 2.39.5