Fix broken is_truthy
check
This commit is contained in:
parent
4096854d8b
commit
d332011d40
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue