mirror of
https://github.com/TheLocehiliosan/yadm
synced 2024-10-27 20:34:27 +00:00
Fixed issue #455-lowercasing checks on both sides - More POSIX friendly
This commit is contained in:
parent
6d305b2b80
commit
630b677269
4
yadm
4
yadm
@ -204,7 +204,7 @@ function score_file() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
elif [[ "$label" =~ ^(d|distro)$ ]]; then
|
elif [[ "$label" =~ ^(d|distro)$ ]]; then
|
||||||
value=$(echo $value | tr '[:upper:]' '[:lower:]')
|
value="$(echo $value | tr '[:upper:]' '[:lower:]')"
|
||||||
if [ "${value/\ /_}" = "${local_distro/\ /_}" ]; then
|
if [ "${value/\ /_}" = "${local_distro/\ /_}" ]; then
|
||||||
score=$((score + 4))
|
score=$((score + 4))
|
||||||
else
|
else
|
||||||
@ -212,7 +212,7 @@ function score_file() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
elif [[ "$label" =~ ^(f|distro_family)$ ]]; then
|
elif [[ "$label" =~ ^(f|distro_family)$ ]]; then
|
||||||
value=$(echo $value | tr '[:upper:]' '[:lower:]')
|
value="$(echo $value | tr '[:upper:]' '[:lower:]')"
|
||||||
if [ "${value/\ /_}" = "${local_distro_family/\ /_}" ]; then
|
if [ "${value/\ /_}" = "${local_distro_family/\ /_}" ]; then
|
||||||
score=$((score + 8))
|
score=$((score + 8))
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user