mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-08 13:13:47 -05:00
Fixed 'quiet' output that wasn
't working
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user