Fix broken is_truthy check

This commit is contained in:
Manuel Thalmann 2023-04-01 15:10:29 +02:00
parent 4096854d8b
commit d332011d40

View file

@ -16,10 +16,10 @@ function is_truthy() {
local value; local value;
value="$1"; value="$1";
[ ! -z "$value" ] || [ ! -z "$value" ] &&
[ "$value" != "0" ] || [ "$value" != "0" ] &&
[ "$value" != "false" ] || [ "$value" != "false" ] &&
[ "$value" != "n" ] || [ "$value" != "n" ] &&
[ "$value" != "no" ]; [ "$value" != "no" ];
} }
@ -217,6 +217,7 @@ then
done; done;
logFile="$(mktemp)"; logFile="$(mktemp)";
echo "NATIVE_WINDOWS: ${NATIVE_WINDOWS}";
if is_truthy "${NATIVE_WINDOWS}" if is_truthy "${NATIVE_WINDOWS}"
then then