From 9104bdba1de2296a16e5834a4456908850bbe312 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Tue, 7 May 2024 11:43:39 +0100 Subject: [PATCH] fix(quickget): disable SC2317 as many functions are called indirectly https://www.shellcheck.net/wiki/SC2317 --- quickget | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quickget b/quickget index 6d2ed1e..24b8604 100755 --- a/quickget +++ b/quickget @@ -1,7 +1,10 @@ #!/usr/bin/env bash +# SC2317: Command appears to be unreachable. Check usage (or ignore if invoked indirectly). +# - https://www.shellcheck.net/wiki/SC2317 +# - Disable globally because many functions are called indirectly +# shellcheck disable=SC2317 export LC_ALL=C -# shellcheck disable=SC2317 function cleanup() { if [ -n "$(jobs -p)" ]; then kill "$(jobs -p)" 2>/dev/null