]> arthur.barton.de Git - netdata.git/commitdiff
initialize all colors to allow bash strict mode
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 18 Mar 2017 19:30:57 +0000 (21:30 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 18 Mar 2017 19:30:57 +0000 (21:30 +0200)
installer/functions.sh

index f27b4535b28284dfd8f968ba1a88832d960d28a1..36d10ec70ad892e066e2d1eba0f7702c1cee37f0 100644 (file)
@@ -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