We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb3cc16 commit 9019a17Copy full SHA for 9019a17
scripts/install.sh
@@ -3,6 +3,7 @@
3
set -eu
4
IFS=$(printf '\n\t')
5
6
+COLORS_SUPPORTED=false
7
if command -v tput >/dev/null 2>&1 && [ "$(tput colors 2>/dev/null || echo 0)" -ge 8 ]; then
8
COLORS_SUPPORTED=true
9
fi
@@ -68,7 +69,7 @@ EXE_PATH="$ASTRA_CLI_DIR/astra"
68
69
TAR_PATH="$ASTRA_CLI_DIR/astra.tar.gz"
70
71
# Colors
-if [ "$(color colors)" -ge 256 ]; then
72
+if [ -n "$(color colors)" ] && [ "$(color colors)" -ge 256 ]; then
73
LIGHT_GRAY=$(color setaf 245)
74
BLUE=$(color setaf 110)
75
PURPLE=$(color setaf 134)
0 commit comments