Skip to content

Commit

Permalink
Fix typo and check for existence
Browse files Browse the repository at this point in the history
  • Loading branch information
Johennes committed Aug 7, 2024
1 parent 70d2fdf commit df9e714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/lint-jsonschema/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ runs:
if [[ "$location" == http* ]]; then
if ! curl --head --silent --fail "$location" 2>&1 > /dev/null; then
err "$file references non-existent image $location"
err "$file references non-existent location $location"
rc=1
fi
else
path=$location
if [[ "$location" == /* ]]; then
path=$(git rev-parse --show-toplevel)/$location
fi
if [[ ! -f "$path" ]]; then
if [[ ! -e "$path" ]]; then
err "$file references non-existent location $location"
rc=1
fi
Expand Down

0 comments on commit df9e714

Please sign in to comment.