mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-09 05:33:48 -05:00
Fixed 'quiet' output that wasn
't working
This commit is contained in:
@@ -65,10 +65,10 @@ function _alert() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Print to console when script is not 'quiet'
|
# Print to console when script is not 'quiet'
|
||||||
if ${quiet}; then
|
if [[ "${quiet}" = "true" ]] || [ ${quiet} == "1" ]; then
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
echo -e "$(date +"%r") ${color}$(printf "[%9s]" ${1}) "${_message}"${reset}";
|
echo -e "$(date +"%r") ${color}$(printf "[%9s]" ${1}) "${_message}"${reset}";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user