From 2a1cfcbd87cdbe51d13abfb52ba0454d94d7ec57 Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Thu, 22 Oct 2015 10:31:15 -0400 Subject: [PATCH] Fixed 'quiet' output that wasn 't working --- lib/utils.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils.sh b/lib/utils.sh index 604b8da..3507a28 100755 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -65,10 +65,10 @@ function _alert() { fi # Print to console when script is not 'quiet' - if ${quiet}; then - return + if [[ "${quiet}" = "true" ]] || [ ${quiet} == "1" ]; then + return else - echo -e "$(date +"%r") ${color}$(printf "[%9s]" ${1}) "${_message}"${reset}"; + echo -e "$(date +"%r") ${color}$(printf "[%9s]" ${1}) "${_message}"${reset}"; fi }