Fixed issue #455-lowercasing checks on both sides
This commit is contained in:
parent
e4bb8a79a4
commit
c6b63cf94b
1 changed files with 4 additions and 2 deletions
6
yadm
6
yadm
|
@ -204,6 +204,7 @@ function score_file() {
|
|||
return
|
||||
fi
|
||||
elif [[ "$label" =~ ^(d|distro)$ ]]; then
|
||||
value=${value,,}
|
||||
if [ "${value/\ /_}" = "${local_distro/\ /_}" ]; then
|
||||
score=$((score + 4))
|
||||
else
|
||||
|
@ -211,6 +212,7 @@ function score_file() {
|
|||
return
|
||||
fi
|
||||
elif [[ "$label" =~ ^(f|distro_family)$ ]]; then
|
||||
value=${value,,}
|
||||
if [ "${value/\ /_}" = "${local_distro_family/\ /_}" ]; then
|
||||
score=$((score + 8))
|
||||
else
|
||||
|
@ -1522,7 +1524,7 @@ function query_distro() {
|
|||
fi
|
||||
done < "$OS_RELEASE"
|
||||
fi
|
||||
echo "$distro"
|
||||
echo "${distro,,}"
|
||||
}
|
||||
|
||||
function query_distro_family() {
|
||||
|
@ -1536,7 +1538,7 @@ function query_distro_family() {
|
|||
fi
|
||||
done < "$OS_RELEASE"
|
||||
fi
|
||||
echo "$family"
|
||||
echo "${family,,}"
|
||||
}
|
||||
|
||||
function process_global_args() {
|
||||
|
|
Loading…
Reference in a new issue