Add true_false function

This commit is contained in:
Martin Blazik
2022-05-29 14:31:01 +02:00
parent 3ce078c0be
commit 61e2fa5a71

View File

@@ -90,3 +90,7 @@ function source_try() {
fi
}
function true_false() {
[[ "${1,,}" =~ ^(1|true|yes)$ ]]
}