From 7d48aae87ecfcfbae25037c385e46d3f4aaee81a Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Sun, 15 Mar 2015 15:15:30 -0400 Subject: [PATCH] Fixed broken logging of user input --- lib/utils.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/utils.sh b/lib/utils.sh index 57ff534..f2e0944 100755 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -49,7 +49,6 @@ function _alert() { #my function fi if [ "${1}" = "input" ]; then local color="${bold}" - savedvar="${printLog}" # Don't print user questions to $logFile printLog="0" fi if [ "${1}" = "info" ] || [ "${1}" = "notice" ]; then @@ -77,7 +76,7 @@ function notice () { local _message="${@}"; echo "$(_alert notice)"; } function info () { local _message="${@}"; echo "$(_alert info)"; } function debug () { local _message="${@}"; echo "$(_alert debug)"; } function success () { local _message="${@}"; echo "$(_alert success)"; } -function input() { local _message="${@}"; echo "$(_alert input)"; printLog="${savedvar}"; } +function input() { local _message="${@}"; echo "$(_alert input)"; } function header() { local _message="========== ${@} ========== "; echo "$(_alert header)"; } # Log messages when verbose is set to "1"