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
d351c76b
Commit
d351c76b
authored
Aug 03, 2015
by
Marc Scholten
Browse files
Also accept any forms of yes as an answer to the "do you want to update?" prompt
parent
3d5b3430
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/check_for_upgrade.sh
View file @
d351c76b
...
@@ -43,7 +43,7 @@ then
...
@@ -43,7 +43,7 @@ then
else
else
echo
"[Oh My Zsh] Would you like to check for updates? [Y/n]:
\c
"
echo
"[Oh My Zsh] Would you like to check for updates? [Y/n]:
\c
"
read
line
read
line
if
[
"
$line
"
=
Y
]
||
[
"
$line
"
=
y
]
||
[
-z
"
$line
"
]
;
then
if
[
[
"
$line
"
=
=
Y
*
]
]
||
[
[
"
$line
"
=
=
y
*
]
]
||
[
-z
"
$line
"
]
;
then
_upgrade_zsh
_upgrade_zsh
else
else
_update_zsh_update
_update_zsh_update
...
...
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