From f295070544da60a04046dd590f373ff21810db7d Mon Sep 17 00:00:00 2001 From: Atif Ali Date: Wed, 3 Dec 2025 14:06:31 +0000 Subject: [PATCH] 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. --- registry/coder/modules/vault-cli/run.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/registry/coder/modules/vault-cli/run.sh b/registry/coder/modules/vault-cli/run.sh index 9012bc7c..a1917f99 100644 --- a/registry/coder/modules/vault-cli/run.sh +++ b/registry/coder/modules/vault-cli/run.sh @@ -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}" ;;