Skip to content

Commit

Permalink
change array separator
Browse files Browse the repository at this point in the history
  • Loading branch information
doofus-01 committed Aug 25, 2024
1 parent e278aad commit 50ce1c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check_metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
git status
# array of accepted copyright strings
accepted_cr=("GNU GPL v2+" "CC BY-SA 4.0")
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 @@ -60,7 +60,7 @@ jobs:
echo "no Copyright EXIF tag in $file"
exit 1
# elif [[ ( "$copyright" != ${accepted_cr[0]} ) && ( "$copyright" != ${accepted_cr[1]}) ]] ; then
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 50ce1c3

Please sign in to comment.