|
|
|
@ -204,7 +204,8 @@ function score_file() {
|
|
|
|
|
return
|
|
|
|
|
fi
|
|
|
|
|
elif [[ "$label" =~ ^(d|distro)$ ]]; then
|
|
|
|
|
value=$(echo "$value" | "${AWK_PROGRAM[0]}" '{print tolower($0)}')
|
|
|
|
|
#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))
|
|
|
|
|
else
|
|
|
|
@ -212,7 +213,8 @@ function score_file() {
|
|
|
|
|
return
|
|
|
|
|
fi
|
|
|
|
|
elif [[ "$label" =~ ^(f|distro_family)$ ]]; then
|
|
|
|
|
value=$(echo "$value" | "${AWK_PROGRAM[0]}" '{print tolower($0)}')
|
|
|
|
|
#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))
|
|
|
|
|
else
|
|
|
|
@ -1524,7 +1526,8 @@ function query_distro() {
|
|
|
|
|
fi
|
|
|
|
|
done < "$OS_RELEASE"
|
|
|
|
|
fi
|
|
|
|
|
echo "$distro" | "${AWK_PROGRAM[0]}" '{print tolower($0)}'
|
|
|
|
|
#echo "$distro" | "${AWK_PROGRAM[0]}" '{print tolower($0)}' ## FIXME Remove
|
|
|
|
|
"${AWK_PROGRAM[0]}" '{print tolower($0)}' <<<"$distro"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function query_distro_family() {
|
|
|
|
@ -1541,7 +1544,8 @@ function query_distro_family() {
|
|
|
|
|
fi
|
|
|
|
|
done < "$OS_RELEASE"
|
|
|
|
|
fi
|
|
|
|
|
echo "$distro" | "${AWK_PROGRAM[0]}" '{print tolower($0)}'
|
|
|
|
|
#echo "$distro" | "${AWK_PROGRAM[0]}" '{print tolower($0)}' ## FIXME Remove
|
|
|
|
|
"${AWK_PROGRAM[0]}" '{print tolower($0)}' <<<"$distro"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function process_global_args() {
|
|
|
|
|