Fixed issue #455-lowercasing checks on both sides - More POSIX friendly
This commit is contained in:
parent
6d305b2b80
commit
630b677269
1 changed files with 2 additions and 2 deletions
4
yadm
4
yadm
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue