Fix broken is_truthy
check
This commit is contained in:
parent
4096854d8b
commit
d332011d40
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue