mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-08 13:13:47 -05:00
remove date stamp from terminal alerting
This commit is contained in:
@@ -147,7 +147,11 @@ _alert_() {
|
|||||||
reset=""
|
reset=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "%s ${_color}[%7s] %s${reset}\n" "$(date +"%r")" "${_alertType}" "${_message}"
|
if [[ ${_alertType} == header ]]; then
|
||||||
|
printf "${_color}%s${reset}\n" "${_message}"
|
||||||
|
else
|
||||||
|
printf "${_color}[%7s] %s${reset}\n" "${_alertType}" "${_message}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
_writeToScreen_
|
_writeToScreen_
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user