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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -9,11 +9,11 @@
# - GTK_PREFIX
# Formatting
fNormal="$(tput sgr0)"
fBold="$(tput bold)"
fNormal="$(tput sgr0)" >/dev/null 2>&1
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.
fMagenta="$(tput setaf 5)"
fRed="$(tput setaf 1)"
fMagenta="$(tput setaf 5)" >/dev/null 2>&1
fRed="$(tput setaf 1)" >/dev/null 2>&1
function msg {
printf "\\n${fBold}-- %s${fNormal}\\n" "${@}"