fix: add shellcheck disable SC2195 for Terraform-templated case statements

The $${} syntax is Terraform template escaping which shellcheck
doesn't understand. Added disable directive for both case statements
in the fetch() function.
This commit is contained in:
Atif Ali 2025-12-03 14:06:31 +00:00
parent ed935218f2
commit f295070544

View File

@ -27,12 +27,14 @@ fetch() {
fi
if [ -n "$${dest}" ]; then
# shellcheck disable=SC2195
case "$${HTTP_CLIENT}" in
curl) curl -sSL --fail "$${url}" -o "$${dest}" ;;
wget) wget -O "$${dest}" "$${url}" ;;
busybox) busybox wget -O "$${dest}" "$${url}" ;;
esac
else
# shellcheck disable=SC2195
case "$${HTTP_CLIENT}" in
curl) curl -sSL --fail "$${url}" ;;
wget) wget -qO- "$${url}" ;;