diff --git a/hack/check-remote-image-existence.sh b/hack/check-remote-image-existence.sh index 5950384eff3..6506628ce9b 100755 --- a/hack/check-remote-image-existence.sh +++ b/hack/check-remote-image-existence.sh @@ -7,7 +7,7 @@ script_dir=$(dirname "$0") result=0 for template in $(realpath "${script_dir}"/../examples/*.yaml "${script_dir}"/./test-templates/*.yaml|sort -u); do for location in $(yq eval '.images[].location' "${template}"); do - if [[ "${location}" == http* ]]; then + if [[ ${location} == http* ]]; then response=$(curl -L -s -I -o /dev/null -w "%{http_code}" "${location}") if [[ ${response} != "200" ]]; then line=$(grep -n "${location}" "${template}" | cut -d ':' -f 1)