11 lines
194 B
Bash
11 lines
194 B
Bash
|
function isTruthy() {
|
||
|
local value;
|
||
|
value="$1";
|
||
|
|
||
|
[ ! -z "$value" ] &&
|
||
|
[ "$value" != "0" ] &&
|
||
|
[ "$value" != "false" ] &&
|
||
|
[ "$value" != "n" ] &&
|
||
|
[ "$value" != "no" ];
|
||
|
}
|