aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid M. Syzdek <syzdek@bindlebinaries.com>2019-07-29 13:46:35 -0800
committerDavid M. Syzdek <syzdek@bindlebinaries.com>2019-07-29 13:46:35 -0800
commit2e7064115a7eadc77eb021fd1ea39d50a41c1786 (patch)
treeba23497034883e1b80854fb57c843b7628859de3
parent6f8947580732f6b9019accf93b5176b12131eb89 (diff)
downloadbbfw-2e7064115a7eadc77eb021fd1ea39d50a41c1786.tar.gz
bbfw-2e7064115a7eadc77eb021fd1ea39d50a41c1786.tar.bz2
bbfw-2e7064115a7eadc77eb021fd1ea39d50a41c1786.tar.xz
bbfw-2e7064115a7eadc77eb021fd1ea39d50a41c1786.zip
fixing logic in FW_QUIET and FW_VERBOSE validation
-rwxr-xr-xsrc/bbfw.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bbfw.in b/src/bbfw.in
index 8a80474..7a188e7 100755
--- a/src/bbfw.in
+++ b/src/bbfw.in
@@ -342,13 +342,13 @@ FW_VERBOSE="$( config_option verbose "${FW_VERBOSE}" A-Z a-z )"
342# checks and normalizes options 342# checks and normalizes options
343if test "x${FW_QUIET}" == "xno";then 343if test "x${FW_QUIET}" == "xno";then
344 unset FW_QUIET 344 unset FW_QUIET
345elif test "x${FW_QUIET}" != "xno";then 345elif test "x${FW_QUIET}" != "xyes";then
346 echo "${PROGRAM_NAME}: invalid value for option 'quiet'" 1>&2 346 echo "${PROGRAM_NAME}: invalid value for option 'quiet'" 1>&2
347 exit 1 347 exit 1
348fi 348fi
349if test "x${FW_VERBOSE}" == "xno";then 349if test "x${FW_VERBOSE}" == "xno";then
350 unset FW_VERBOSE 350 unset FW_VERBOSE
351elif test "x${FW_VERBOSE}" != "xno";then 351elif test "x${FW_VERBOSE}" != "xyes";then
352 echo "${PROGRAM_NAME}: invalid value for verbose 'quiet'" 1>&2 352 echo "${PROGRAM_NAME}: invalid value for verbose 'quiet'" 1>&2
353 exit 1 353 exit 1
354else 354else