From 9f852c1ad401199d8dc2bb28d837258556ebda7e Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Tue, 30 May 2023 23:17:59 -0400 Subject: [PATCH] Fixed issue #455-lowercasing checks on both sides - More POSIX friendly 4 --- yadm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/yadm b/yadm index 9cfa44eb..1f4e9a2d 100755 --- a/yadm +++ b/yadm @@ -204,7 +204,6 @@ function score_file() { return fi elif [[ "$label" =~ ^(d|distro)$ ]]; then - #value=$(echo "$value" | "${AWK_PROGRAM[0]}" '{print tolower($0)}') # FIXME Remove value=$("${AWK_PROGRAM[0]}" '{print tolower($0)}' <<<"$value") if [ "${value/\ /_}" = "${local_distro/\ /_}" ]; then score=$((score + 4)) @@ -213,7 +212,6 @@ function score_file() { return fi elif [[ "$label" =~ ^(f|distro_family)$ ]]; then - #value=$(echo "$value" | "${AWK_PROGRAM[0]}" '{print tolower($0)}') # FIXME Remove value=$("${AWK_PROGRAM[0]}" '{print tolower($0)}' <<<"$value") if [ "${value/\ /_}" = "${local_distro_family/\ /_}" ]; then score=$((score + 8)) @@ -1526,7 +1524,6 @@ function query_distro() { fi done < "$OS_RELEASE" fi - #echo "$distro" | "${AWK_PROGRAM[0]}" '{print tolower($0)}' ## FIXME Remove "${AWK_PROGRAM[0]}" '{print tolower($0)}' <<<"$distro" } @@ -1544,7 +1541,6 @@ function query_distro_family() { fi done < "$OS_RELEASE" fi - #echo "$distro" | "${AWK_PROGRAM[0]}" '{print tolower($0)}' ## FIXME Remove "${AWK_PROGRAM[0]}" '{print tolower($0)}' <<<"$distro" }