diff options
| author | David M. Syzdek <syzdek@bindlebinaries.com> | 2019-07-29 13:46:35 -0800 |
|---|---|---|
| committer | David M. Syzdek <syzdek@bindlebinaries.com> | 2019-07-29 13:46:35 -0800 |
| commit | 2e7064115a7eadc77eb021fd1ea39d50a41c1786 (patch) | |
| tree | ba23497034883e1b80854fb57c843b7628859de3 | |
| parent | 6f8947580732f6b9019accf93b5176b12131eb89 (diff) | |
| download | bbfw-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-x | src/bbfw.in | 4 |
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 |
| 343 | if test "x${FW_QUIET}" == "xno";then | 343 | if test "x${FW_QUIET}" == "xno";then |
| 344 | unset FW_QUIET | 344 | unset FW_QUIET |
| 345 | elif test "x${FW_QUIET}" != "xno";then | 345 | elif 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 |
| 348 | fi | 348 | fi |
| 349 | if test "x${FW_VERBOSE}" == "xno";then | 349 | if test "x${FW_VERBOSE}" == "xno";then |
| 350 | unset FW_VERBOSE | 350 | unset FW_VERBOSE |
| 351 | elif test "x${FW_VERBOSE}" != "xno";then | 351 | elif 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 |
| 354 | else | 354 | else |
