macOS: mute tput warnings

tput warns you when running with no attached terminal; eg. GitHub CI.
Redirects warnings to /dev/null
This commit is contained in:
Benitoite
2023-02-27 12:49:26 -08:00
committed by GitHub
parent 69397aea09
commit c55bc5103f

View File

@@ -9,11 +9,11 @@
# - GTK_PREFIX # - GTK_PREFIX
# Formatting # Formatting
fNormal="$(tput sgr0)" fNormal="$(tput sgr0)" >/dev/null 2>&1
fBold="$(tput bold)" fBold="$(tput bold)" >/dev/null 2>&1
# Colors depend upon the user's terminal emulator color scheme - what is readable for you may be not readable for someone else. # Colors depend upon the user's terminal emulator color scheme - what is readable for you may be not readable for someone else.
fMagenta="$(tput setaf 5)" fMagenta="$(tput setaf 5)" >/dev/null 2>&1
fRed="$(tput setaf 1)" fRed="$(tput setaf 1)" >/dev/null 2>&1
function msg { function msg {
printf "\\n${fBold}-- %s${fNormal}\\n" "${@}" printf "\\n${fBold}-- %s${fNormal}\\n" "${@}"