Skip to content

Commit

Permalink
scripts: enable checks for unassigned uppercase
Browse files Browse the repository at this point in the history
As almost all variables are upper-case and do not follow the intention of
koalaman/shellcheck#1037 (comment)
include checks for unassigned upper-case variables.
  • Loading branch information
grische committed Jul 1, 2024
1 parent 10728bc commit 3764adc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/container.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# shellcheck enable=check-unassigned-uppercase

set -euo pipefail

Expand All @@ -21,4 +22,3 @@ else
echo "Please install either podman or docker. Exiting" >&2
exit 1
fi

1 change: 1 addition & 0 deletions scripts/patch.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck enable=check-unassigned-uppercase

set -e
shopt -s nullglob
Expand Down
2 changes: 1 addition & 1 deletion scripts/update-modules.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
# shellcheck enable=check-unassigned-uppercase

set -eo pipefail

Expand Down Expand Up @@ -66,4 +67,3 @@ for MODULE in "OPENWRT" "PACKAGES_PACKAGES" "PACKAGES_ROUTING" "PACKAGES_GLUON";
# remove the checkout
rm -fr "${CHECKOUT}"
done

1 change: 1 addition & 0 deletions scripts/update-patches.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck enable=check-unassigned-uppercase

set -e
shopt -s nullglob
Expand Down

0 comments on commit 3764adc

Please sign in to comment.