Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
8c73eb4f
Commit
8c73eb4f
authored
Oct 20, 2015
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4419 from apjanke/installer-termcap-hack
installer: ignore errors in color setup, for FreeBSD portability
parents
45f0a280
f94fee5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
install.sh
tools/install.sh
+5
-2
No files found.
tools/install.sh
View file @
8c73eb4f
set
-e
# Use colors, but only if connected to a terminal, and that terminal
# Use colors, but only if connected to a terminal, and that terminal
# supports them.
# supports them.
tput
=
$(
which tput
)
tput
=
$(
which tput
)
...
@@ -21,6 +19,11 @@ else
...
@@ -21,6 +19,11 @@ else
BOLD
=
""
BOLD
=
""
NORMAL
=
""
NORMAL
=
""
fi
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
)
CHECK_ZSH_INSTALLED
=
$(
grep
/zsh
$
/etc/shells |
wc
-l
)
if
[
!
$CHECK_ZSH_INSTALLED
-ge
1
]
;
then
if
[
!
$CHECK_ZSH_INSTALLED
-ge
1
]
;
then
printf
"
${
YELLOW
}
Zsh is not installed!
${
NORMAL
}
Please install zsh first!
\n
"
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