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
4131a59d
Commit
4131a59d
authored
Jun 30, 2014
by
Robby Russell
Browse files
Merge pull request #2827 from ncanceill/easymerge
...you folks are amazing. :-) "Easy-to-merge"
parents
3913106b
08632bb1
Changes
41
Hide whitespace changes
Inline
Side-by-side
tools/check_for_upgrade.sh
View file @
4131a59d
...
...
@@ -5,7 +5,7 @@ function _current_epoch() {
}
function
_update_zsh_update
()
{
echo
"LAST_EPOCH=
$(
_current_epoch
)
"
>
~/.zsh-update
echo
"LAST_EPOCH=
$(
_current_epoch
)
"
>
!
~/.zsh-update
}
function
_upgrade_zsh
()
{
...
...
@@ -22,6 +22,10 @@ fi
[
-f
~/.profile
]
&&
source
~/.profile
# Cancel upgrade if the current user doesn't have write permissions for the
# oh-my-zsh directory.
[[
-w
"
$ZSH
"
]]
||
return
0
if
[
-f
~/.zsh-update
]
then
.
~/.zsh-update
...
...
Prev
1
2
3
Next
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