1
0
Fork 0
mirror of synced 2024-11-04 17:08:56 -05:00

Merge pull request #432 from signed-log/alt_with_spaces

This commit is contained in:
Tim Byrne 2022-09-13 11:56:51 -05:00
commit 67c684473d
No known key found for this signature in database
GPG key ID: 14DB4FC2465A4B12

4
yadm
View file

@ -204,14 +204,14 @@ function score_file() {
return
fi
elif [[ "$label" =~ ^(d|distro)$ ]]; then
if [ "$value" = "$local_distro" ]; then
if [ "${value/\ /_}" = "${local_distro/\ /_}" ]; then
score=$((score + 4))
else
score=0
return
fi
elif [[ "$label" =~ ^(f|distro_family)$ ]]; then
if [ "$value" = "$local_distro_family" ]; then
if [ "${value/\ /_}" = "${local_distro_family/\ /_}" ]; then
score=$((score + 8))
else
score=0