mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-09 05:33:48 -05:00
minor formatting change
This commit is contained in:
@@ -106,7 +106,7 @@ _alert_() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
_writeToScreen_() {
|
_writeToScreen_() {
|
||||||
("${QUIET}") && return 0 # Print to console when script is not 'quiet'
|
[[ ${QUIET} == true ]] && return 0 # Print to console when script is not 'quiet'
|
||||||
[[ ${VERBOSE} == false && ${_alertType} =~ ^(debug|verbose) ]] && return 0
|
[[ ${VERBOSE} == false && ${_alertType} =~ ^(debug|verbose) ]] && return 0
|
||||||
|
|
||||||
if ! [[ -t 1 || -z ${TERM:-} ]]; then # Don't use colors on non-recognized terminals
|
if ! [[ -t 1 || -z ${TERM:-} ]]; then # Don't use colors on non-recognized terminals
|
||||||
|
|||||||
Reference in New Issue
Block a user