Fixed issue #455-lowercasing checks on both sides - More POSIX friendly

This commit is contained in:
Eric Renfro 2023-05-30 13:40:51 -04:00
parent 6d305b2b80
commit 630b677269
Signed by: psi-jack
GPG Key ID: 14977F3A50D9A5BF
1 changed files with 2 additions and 2 deletions

4
yadm
View File

@ -204,7 +204,7 @@ function score_file() {
return
fi
elif [[ "$label" =~ ^(d|distro)$ ]]; then
value=$(echo $value | tr '[:upper:]' '[:lower:]')
value="$(echo $value | tr '[:upper:]' '[:lower:]')"
if [ "${value/\ /_}" = "${local_distro/\ /_}" ]; then
score=$((score + 4))
else
@ -212,7 +212,7 @@ function score_file() {
return
fi
elif [[ "$label" =~ ^(f|distro_family)$ ]]; then
value=$(echo $value | tr '[:upper:]' '[:lower:]')
value="$(echo $value | tr '[:upper:]' '[:lower:]')"
if [ "${value/\ /_}" = "${local_distro_family/\ /_}" ]; then
score=$((score + 8))
else