From a81099ee4f1a14b5189c03d47818134e378d37ba Mon Sep 17 00:00:00 2001 From: Micah Abbott Date: Fri, 20 Jan 2023 13:57:54 -0500 Subject: [PATCH] Revert "update_platforms_check: quote array for ShellCheck fix" This reverts commit 84bbd674a7da12ea7c07657129d489942c69e449. --- usr/lib/greenboot/check/wanted.d/01_update_platforms_check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/greenboot/check/wanted.d/01_update_platforms_check.sh b/usr/lib/greenboot/check/wanted.d/01_update_platforms_check.sh index 4db0b4b..5ebbfcd 100644 --- a/usr/lib/greenboot/check/wanted.d/01_update_platforms_check.sh +++ b/usr/lib/greenboot/check/wanted.d/01_update_platforms_check.sh @@ -13,7 +13,7 @@ get_update_platform_urls() { } assert_update_platforms_are_responding() { - for UPDATE_PLATFORM_URL in "${UPDATE_PLATFORM_URLS[@]}"; do + 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 URLS_WITH_PROBLEMS+=( "$UPDATE_PLATFORM_URL" )