diff --git a/yadm b/yadm index 97a56c1..a9330b0 100755 --- a/yadm +++ b/yadm @@ -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