Skip to content

Commit

Permalink
Fixed issue yadm-dev#455-lowercasing checks on both sides - More POSI…
Browse files Browse the repository at this point in the history
…X friendly 4
  • Loading branch information
erenfro committed May 31, 2023
1 parent 8bfc09c commit 9f852c1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions yadm
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand Down Expand Up @@ -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"
}

Expand All @@ -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"
}

Expand Down

0 comments on commit 9f852c1

Please sign in to comment.