Skip to content

Commit 7b95684

Browse files
committed
Fix array iteration
1 parent 264e17c commit 7b95684

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy-cors-proxy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ jobs:
7474
CUSTOM_ORIGINS_PHP="<?php define('PLAYGROUND_CORS_PROXY_SUPPORTED_ORIGINS', array("
7575
7676
readarray -t CUSTOM_ORIGINS <<< "${CUSTOM_SUPPORTED_ORIGINS_NEWLINE_SEPARATED}"
77-
for origin in $CUSTOM_ORIGINS; do
77+
for origin in "${CUSTOM_ORIGINS[@]}"; do
7878
if ! [[
7979
$origin =~ ^https?:\/\/(?:[a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.[a-zA-Z]{2,}(?::\d{1,5})?$
8080
]]; then
81-
echo "Unable to use CUSTOM_SUPPORTED_ORIGINS_SPACE_SEPARATED"
81+
echo "Unable to use CUSTOM_SUPPORTED_ORIGINS_NEWLINE_SEPARATED"
8282
echo "Invalid origin: '$origin'"
8383
exit -1;
8484
fi

0 commit comments

Comments
 (0)