We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f1f3e1 commit 6fe47b9Copy full SHA for 6fe47b9
scripts/test_netlify_redirects.sh
@@ -70,8 +70,8 @@ URLS=(
70
for path in "${URLS[@]}"; do
71
full_url="${BASE_URL}${path}"
72
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-)
+ http_code=$(echo "$response" | cut -d' ' -f1)
+ redirect_url=$(echo "$response" | cut -d' ' -f2-)
75
76
if [[ "$http_code" == "301" || "$http_code" == "302" ]]; then
77
echo "[REDIRECT] $path → $redirect_url"
0 commit comments