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
152e1e07
Commit
152e1e07
authored
Dec 18, 2013
by
n.st
Browse files
Cancel update if the current user doesn't have write permissions for the oh-my-zsh directory.
parent
357ab491
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/check_for_upgrade.sh
View file @
152e1e07
...
...
@@ -26,6 +26,13 @@ if [ -f ~/.zsh-update ]
then
.
~/.zsh-update
# cancel update if the current user doesn't have write permissions for the
# oh-my-zsh directory
if
[
-n
$(
find
-not
-writable
"
$ZSH
"
)
]
then
return
0
;
fi
if
[[
-z
"
$LAST_EPOCH
"
]]
;
then
_update_zsh_update
&&
return
0
;
fi
...
...
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