Skip to content

Commit

Permalink
fix license array check - for real
Browse files Browse the repository at this point in the history
  • Loading branch information
doofus-01 committed Aug 25, 2024
1 parent 9a2701a commit 12439f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/image_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
git status
# array of accepted copyright strings
accepted_cr=("GNU GPL v2+" "CC BY-SA 4.0" "CC0")
accepted_cr=("GNU GPL v2+|CC BY-SA 4.0|CC0")
# cycle through the changed image files, make sure they have the right fields
for file in "${image_files[@]}"; do
# check -Artist tag, fail if missing
Expand All @@ -56,7 +56,7 @@ jobs:
if [ -z "$copyright" ] ; then
echo "no Copyright EXIF tag in $file"
exit 1
elif [[ ! " ${accepted_cr[*]} " =~ " ${copyright} " ]]; then
elif [[ ! "|${accepted_cr[*]}|" =~ "|${copyright}|" ]]; then
echo "$copyright is not an accepted license"
exit 1
else
Expand Down

0 comments on commit 12439f3

Please sign in to comment.