From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonatan Schlag To: network@lists.ipfire.org Subject: [PATCH] util: isbool accept now also true and false Date: Thu, 06 Jul 2017 15:28:40 +0200 Message-ID: <1499347720-28803-1-git-send-email-jonatan.schlag@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5433949742100258788==" List-Id: --===============5433949742100258788== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Signed-off-by: Jonatan Schlag --- src/functions/functions.util | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/functions.util b/src/functions/functions.util index 37feb73..0a9b3d6 100644 --- a/src/functions/functions.util +++ b/src/functions/functions.util @@ -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() { -- 2.6.3 --===============5433949742100258788==--