Fixed 'quiet' output that wasn

't working
This commit is contained in:
Nathaniel Landau
2015-10-22 10:31:15 -04:00
parent 90759a3ece
commit 2a1cfcbd87

View File

@@ -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
}