feat(macos-compatibility): remove requirement for gnu-version of sed which supports case-insensitive search, by converting all characters to lowercase before usage

This commit is contained in:
sidneys 2020-04-07 23:10:33 +02:00
parent 9e50b92ecd
commit 32269042ab

View File

@ -374,7 +374,7 @@ fi
list= list=
lang=$(grep -i "_..-.*.esd" <<< "$metadataFiles" | head -1 | sed 's/.*_//g;s/.esd//gi') lang=$(grep -i "_..-.*.esd" <<< "$metadataFiles" | head -1 | tr '[:upper:]' '[:lower:]' | sed 's/.*_//g;s/.esd//g')
metadataFiles=$(grep -i "$lang" <<< "$metadataFiles" | sort | uniq) metadataFiles=$(grep -i "$lang" <<< "$metadataFiles" | sort | uniq)
firstMetadata=$(head -1 <<< "$metadataFiles") firstMetadata=$(head -1 <<< "$metadataFiles")