PortValhalla/scripts/Common/Scripts/is-truthy.sh

10 lines
194 B
Bash
Executable file

function isTruthy() {
local value;
value="$1";
[ ! -z "$value" ] &&
[ "$value" != "0" ] &&
[ "$value" != "false" ] &&
[ "$value" != "n" ] &&
[ "$value" != "no" ];
}