Skip to content

Commit 6fe47b9

Browse files
committed
Lint test script
1 parent 1f1f3e1 commit 6fe47b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/test_netlify_redirects.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ URLS=(
7070
for path in "${URLS[@]}"; do
7171
full_url="${BASE_URL}${path}"
7272
response=$(curl -s -o /dev/null -w "%{http_code} %{redirect_url}" "$full_url")
73-
http_code=$(echo $response | cut -d' ' -f1)
74-
redirect_url=$(echo $response | cut -d' ' -f2-)
73+
http_code=$(echo "$response" | cut -d' ' -f1)
74+
redirect_url=$(echo "$response" | cut -d' ' -f2-)
7575

7676
if [[ "$http_code" == "301" || "$http_code" == "302" ]]; then
7777
echo "[REDIRECT] $path$redirect_url"

0 commit comments

Comments
 (0)