fix(quickget): disable SC2317 as many functions are called indirectly

https://www.shellcheck.net/wiki/SC2317
This commit is contained in:
Martin Wimpress 2024-05-07 11:43:39 +01:00 committed by Martin Wimpress
parent 7eac685f25
commit 9104bdba1d
1 changed files with 4 additions and 1 deletions

View File

@ -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