Skip to content

Commit

Permalink
disable shellcheck SC2048 on URL array
Browse files Browse the repository at this point in the history
See: https://github.com/koalaman/shellcheck/wiki/SC2048

In the case of the UPDATE_PLATFORM_URLS variable, we actually want to
split on whitespace since the array should just contain URLs.

Disable the Shellcheck directive for this array.

Closes: #93
  • Loading branch information
miabbott committed Jan 20, 2023
1 parent a81099e commit d32741f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ get_update_platform_urls() {
}

assert_update_platforms_are_responding() {
# shellcheck disable=SC2048
for UPDATE_PLATFORM_URL in ${UPDATE_PLATFORM_URLS[*]}; do
HTTP_STATUS=$(curl -o /dev/null -Isw '%{http_code}\n' "$UPDATE_PLATFORM_URL" || echo "Unreachable")
if ! [[ $HTTP_STATUS == 2* ]] && ! [[ $HTTP_STATUS == 3* ]]; then
Expand Down

0 comments on commit d32741f

Please sign in to comment.