From 0eef3a89f9bd8041c4266681828bb845b0667a0e Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Sat, 15 Jul 2023 15:47:20 +0200 Subject: [PATCH] complete-readmes: Do not detect blanks as "name change" [why] When we rename "Envy Code R" to "EnvyCodeR" this is detected as RFN relevant name change, which it is not. [how] Compare the blank removed lower cased names. Signed-off-by: Fini Jastrow --- bin/scripts/standardize-and-complete-readmes.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/scripts/standardize-and-complete-readmes.sh b/bin/scripts/standardize-and-complete-readmes.sh index e7595d1f3..28a665721 100755 --- a/bin/scripts/standardize-and-complete-readmes.sh +++ b/bin/scripts/standardize-and-complete-readmes.sh @@ -81,9 +81,11 @@ do then config_rfn=$(echo "$fontdata" | jq -r .unpatchedName) config_rfn_substitue=$(echo "$fontdata" | jq -r .patchedName) - if [ "${config_rfn}" = "${config_rfn_substitue}" ] + check_config_rfn=$(tr '[:upper:]' '[:lower:]' <<< "$config_rfn" | tr -d ' ') + check_config_rfn_sub=$(tr '[:upper:]' '[:lower:]' <<< "$config_rfn_substitue" | tr -d ' ') + if [ "${check_config_rfn}" = "${check_config_rfn_sub}" ] then - # Only the case with Mononoki which is RFN but we do not rename (we got the permission to keep the name) + # Only the case with Mononoki and Envy Code R which is RFN but we do not rename (we got the permission to keep the name) unset config_rfn unset config_rfn_substitue fi