mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-12 06:53:48 -05:00
fixed non-printing of user input requests
This commit is contained in:
@@ -84,7 +84,7 @@ function _alert() { #my function
|
|||||||
fi
|
fi
|
||||||
if [ "${1}" = "input" ]; then
|
if [ "${1}" = "input" ]; then
|
||||||
local color="${bold}"
|
local color="${bold}"
|
||||||
_printLog="0" # Don't print to $logFile
|
printLog="0" # Don't print to $logFile
|
||||||
fi
|
fi
|
||||||
if [ "${1}" = "info" ] || [ "${1}" = "notice" ]; then
|
if [ "${1}" = "info" ] || [ "${1}" = "notice" ]; then
|
||||||
local color="" # Us terminal default color
|
local color="" # Us terminal default color
|
||||||
@@ -95,7 +95,7 @@ function _alert() { #my function
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Print to $logFile
|
# Print to $logFile
|
||||||
if [[ "${printLog}" = "1" ]]; then
|
if [ "${printLog}" == "1" ]; then
|
||||||
echo -e "$(date +"%m-%d-%Y %r") $(printf "[%9s]" ${1}) "${_message}"" >> $logFile;
|
echo -e "$(date +"%m-%d-%Y %r") $(printf "[%9s]" ${1}) "${_message}"" >> $logFile;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user