From 2422ed4b6f4031a50292398fd9aaec7646c9662e Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Wed, 7 Jan 2015 23:33:43 -0500 Subject: [PATCH] fixed non-printing of user input requests --- lib/utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils.sh b/lib/utils.sh index 9bc4281..0cea2cd 100755 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -84,7 +84,7 @@ function _alert() { #my function fi if [ "${1}" = "input" ]; then local color="${bold}" - _printLog="0" # Don't print to $logFile + printLog="0" # Don't print to $logFile fi if [ "${1}" = "info" ] || [ "${1}" = "notice" ]; then local color="" # Us terminal default color @@ -95,7 +95,7 @@ function _alert() { #my function fi # Print to $logFile - if [[ "${printLog}" = "1" ]]; then + if [ "${printLog}" == "1" ]; then echo -e "$(date +"%m-%d-%Y %r") $(printf "[%9s]" ${1}) "${_message}"" >> $logFile; fi