Skip to content

Commit

Permalink
check-remote-image-existence.sh: remove double quotation in [[ ]]
Browse files Browse the repository at this point in the history
Signed-off-by: Norio Nomura <[email protected]>
  • Loading branch information
norio-nomura committed Aug 5, 2024
1 parent e711fc9 commit 8ba048c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/check-remote-image-existence.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8ba048c

Please sign in to comment.