Commit 8c73eb4f authored by Marc Cornellà's avatar Marc Cornellà
Browse files

Merge pull request #4419 from apjanke/installer-termcap-hack

installer: ignore errors in color setup, for FreeBSD portability
parents 45f0a280 f94fee5a
set -e
# Use colors, but only if connected to a terminal, and that terminal
# supports them.
tput=$(which tput)
......@@ -21,6 +19,11 @@ else
BOLD=""
NORMAL=""
fi
# Only enable exit-on-error after the non-critical colorization stuff,
# which may fail on systems lacking tput or terminfo
set -e
CHECK_ZSH_INSTALLED=$(grep /zsh$ /etc/shells | wc -l)
if [ ! $CHECK_ZSH_INSTALLED -ge 1 ]; then
printf "${YELLOW}Zsh is not installed!${NORMAL} Please install zsh first!\n"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment