Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
f94fee5a
Commit
f94fee5a
authored
Sep 28, 2015
by
Andrew Janke
Browse files
installer: don't bail on errors in color setup
This is a hack to keep the installer working on systems without tput/terminfo.
parent
b05ef103
Changes
1
Show whitespace changes
Inline
Side-by-side
tools/install.sh
View file @
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
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment