From e3139b5bd94a19f7e10f9f616e13c1726754cad0 Mon Sep 17 00:00:00 2001 From: Grische <2787581+grische@users.noreply.github.com> Date: Sat, 27 Jul 2024 23:16:18 +0200 Subject: [PATCH] scripts: enable checks for unassigned uppercase (#3302) As almost all variables are upper-case and do not follow the intention of https://github.com/koalaman/shellcheck/issues/1037#issuecomment-341288433 include checks for unassigned upper-case variables. --- scripts/container.sh | 2 +- scripts/patch.sh | 1 + scripts/update-modules.sh | 1 + scripts/update-patches.sh | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/container.sh b/scripts/container.sh index 9d00db73b5..616e5c8c25 100755 --- a/scripts/container.sh +++ b/scripts/container.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# shellcheck enable=check-unassigned-uppercase set -euo pipefail @@ -21,4 +22,3 @@ else echo "Please install either podman or docker. Exiting" >&2 exit 1 fi - diff --git a/scripts/patch.sh b/scripts/patch.sh index 9269ffb51d..a913474346 100755 --- a/scripts/patch.sh +++ b/scripts/patch.sh @@ -1,4 +1,5 @@ #!/bin/bash +# shellcheck enable=check-unassigned-uppercase set -e shopt -s nullglob diff --git a/scripts/update-modules.sh b/scripts/update-modules.sh index f16aa38aca..d2db585459 100755 --- a/scripts/update-modules.sh +++ b/scripts/update-modules.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# shellcheck enable=check-unassigned-uppercase set -eo pipefail diff --git a/scripts/update-patches.sh b/scripts/update-patches.sh index c40c63b8bf..9776e4bb01 100755 --- a/scripts/update-patches.sh +++ b/scripts/update-patches.sh @@ -1,4 +1,5 @@ #!/bin/bash +# shellcheck enable=check-unassigned-uppercase set -e shopt -s nullglob