From 22a0f5fdedf91cb1b4b6b35da6bedfc0404c398e Mon Sep 17 00:00:00 2001 From: Todd Willey Date: Thu, 15 Dec 2011 13:42:56 -0800 Subject: [PATCH] Alternate capitalization schemes for True/False. Change-Id: I3c6a9443e9c80dbe7a13caefd5be9121d8335f69 --- stack.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stack.sh b/stack.sh index c7c5293af0..a4543efc5a 100755 --- a/stack.sh +++ b/stack.sh @@ -195,8 +195,8 @@ function trueorfalse() { local testval=$2 [[ -z "$testval" ]] && { echo "$default"; return; } - [[ "0 no false" =~ "$testval" ]] && { echo "False"; return; } - [[ "1 yes true" =~ "$testval" ]] && { echo "True"; return; } + [[ "0 no false False FALSE" =~ "$testval" ]] && { echo "False"; return; } + [[ "1 yes true True TRUE" =~ "$testval" ]] && { echo "True"; return; } echo "$default" }