From 630b677269dc1c52089e4258d7c0aefadff84b67 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Tue, 30 May 2023 13:40:51 -0400 Subject: [PATCH] Fixed issue #455-lowercasing checks on both sides - More POSIX friendly --- yadm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yadm b/yadm index f2157fe9..fca257e6 100755 --- a/yadm +++ b/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