Skip to content

Commit

Permalink
Fix path substitution bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Johennes committed Aug 8, 2024
1 parent b9fc798 commit 25a11d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/lint-jsonschema/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ runs:
else
# Strip fragments and prefix absolute paths with repo root
path=${location/\#*/}
if [[ "$location" == /* ]]; then
path=$(git rev-parse --show-toplevel)/$location
if [[ "$path" == /* ]]; then
path=$(git rev-parse --show-toplevel)/$path
fi
if [[ ! -e "$path" ]]; then
err "$file references non-existent location $location ($path)"
err "$file references non-existent location $location"
rc=1
fi
fi
Expand Down

0 comments on commit 25a11d1

Please sign in to comment.