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
c4981bae
Commit
c4981bae
authored
May 05, 2018
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
installer: check if zsh in path instead of /etc/shells
Fixes #4955 Closes #5931 Closes #6398 Co-authored-by:
Void
<
vst4rbot@gmail.com
>
Co-authored-by:
Kaleb Elwert
<
belak@coded.io
>
parent
cafa6574
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
install.sh
tools/install.sh
+1
-3
No files found.
tools/install.sh
View file @
c4981bae
...
@@ -24,12 +24,10 @@ main() {
...
@@ -24,12 +24,10 @@ main() {
# which may fail on systems lacking tput or terminfo
# which may fail on systems lacking tput or terminfo
set
-e
set
-e
CHECK_ZSH_INSTALLED
=
$(
grep
/zsh
$
/etc/shells |
wc
-l
)
if
command
-v
zsh
>
/dev/null 2>&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
"
exit
exit
fi
fi
unset
CHECK_ZSH_INSTALLED
if
[
!
-n
"
$ZSH
"
]
;
then
if
[
!
-n
"
$ZSH
"
]
;
then
ZSH
=
~/.oh-my-zsh
ZSH
=
~/.oh-my-zsh
...
...
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