]> git.ipfire.org Git - people/ms/network.git/commitdiff
util: isbool accept now also true and false
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Thu, 6 Jul 2017 13:28:40 +0000 (15:28 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Jul 2017 12:29:38 +0000 (08:29 -0400)
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.util

index 37feb73b308a4e0b7c23a3184de9dc0e2a3f7e8e..0a9b3d6b189385b3d608ee8aca61e32766abcd30 100644 (file)
@@ -310,7 +310,7 @@ isoneof() {
 isbool() {
        local var=${1}
 
-       isoneof ${var} 0 1 no yes on off
+       isoneof ${var} 0 1 no yes on off true false
 }
 
 isinteger() {