Skip to content

Commit

Permalink
Fixed issue yadm-dev#455-lowercasing checks on both sides - More POSI…
Browse files Browse the repository at this point in the history
…X friendly
  • Loading branch information
erenfro committed May 30, 2023
1 parent 6d305b2 commit 630b677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yadm
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,15 @@ 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
score=0
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
Expand Down

0 comments on commit 630b677

Please sign in to comment.