1
0
Fork 0
mirror of synced 2024-12-04 06:35:36 -05:00

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

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