summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-03-18 21:30:57 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-03-18 21:30:57 +0200
commit8fe42cd96aa86a7590276459e0d744bc0e0d98ce (patch)
tree6524b2b8da24e2af4ba202d58f23372450da46de /installer
parent3f6f47b5c8015a00ddb1e9857c31d456853aee5b (diff)
initialize all colors to allow bash strict mode
Diffstat (limited to 'installer')
-rw-r--r--installer/functions.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/installer/functions.sh b/installer/functions.sh
index f27b4535b2..36d10ec70a 100644
--- a/installer/functions.sh
+++ b/installer/functions.sh
@@ -17,6 +17,32 @@ check_cmd() {
# -----------------------------------------------------------------------------
setup_terminal() {
+ TPUT_RESET=""
+ TPUT_BLACK=""
+ TPUT_RED=""
+ TPUT_GREEN=""
+ TPUT_YELLOW=""
+ TPUT_BLUE=""
+ TPUT_PURPLE=""
+ TPUT_CYAN=""
+ TPUT_WHITE=""
+ TPUT_BGBLACK=""
+ TPUT_BGRED=""
+ TPUT_BGGREEN=""
+ TPUT_BGYELLOW=""
+ TPUT_BGBLUE=""
+ TPUT_BGPURPLE=""
+ TPUT_BGCYAN=""
+ TPUT_BGWHITE=""
+ TPUT_BOLD=""
+ TPUT_DIM=""
+ TPUT_UNDERLINED=""
+ TPUT_BLINK=""
+ TPUT_INVERTED=""
+ TPUT_STANDOUT=""
+ TPUT_BELL=""
+ TPUT_CLEAR=""
+
# Is stderr on the terminal? If not, then fail
test -t 2 || return 1