Add true_false function
This commit is contained in:
@@ -90,3 +90,7 @@ function source_try() {
|
||||
fi
|
||||
}
|
||||
|
||||
function true_false() {
|
||||
[[ "${1,,}" =~ ^(1|true|yes)$ ]]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user