From 8fe42cd96aa86a7590276459e0d744bc0e0d98ce Mon Sep 17 00:00:00 2001 From: "Costa Tsaousis (ktsaou)" Date: Sat, 18 Mar 2017 21:30:57 +0200 Subject: [PATCH] initialize all colors to allow bash strict mode --- installer/functions.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/installer/functions.sh b/installer/functions.sh index f27b4535..36d10ec7 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 -- 2.39.2