From c6b63cf94b98cc94b765e00b2598618b86557553 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Tue, 30 May 2023 13:00:08 -0400 Subject: [PATCH] Fixed issue #455-lowercasing checks on both sides --- yadm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/yadm b/yadm index 003d954..a7a0c11 100755 --- a/yadm +++ b/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() {