From 32269042abd167c9b49fcbb0a8c149efd9e852b3 Mon Sep 17 00:00:00 2001 From: sidneys Date: Tue, 7 Apr 2020 23:10:33 +0200 Subject: [PATCH] feat(macos-compatibility): remove requirement for gnu-version of `sed` which supports case-insensitive search, by converting all characters to lowercase before usage --- convert.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert.sh b/convert.sh index fbd0cb0..b4dd6cd 100755 --- a/convert.sh +++ b/convert.sh @@ -374,7 +374,7 @@ fi 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) firstMetadata=$(head -1 <<< "$metadataFiles")