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