Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

Better error suppresion when getting terminal colours (#7739)

frobe66c29261a8b
diff --git a/scripts/install.sh b/scripts/install.sh
index 850800a07..bc7b5f58e 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -4,8 +4,8 @@
set -eu
-red="$( (/usr/bin/tput bold; /usr/bin/tput setaf 1; :) 2>&-)"
-plain="$( (/usr/bin/tput sgr0; :) 2>&-)"
+red="$( (/usr/bin/tput bold || :; /usr/bin/tput setaf 1 || :) 2>&-)"
+plain="$( (/usr/bin/tput sgr0 || :) 2>&-)"
status() { echo ">>> $*" >&2; }
error() { echo "${red}ERROR:${plain} $*"; exit 1; }