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:
@@ -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" "${@}"
|
||||||
|
Reference in New Issue
Block a user