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
Oh My Zsh
Commits
d978f385
Commit
d978f385
authored
Jan 21, 2021
by
Marc Cornellà
Browse files
fix(updater): refresh date of last update only on successful update
parent
cd4918c2
Changes
2
Show whitespace changes
Inline
Side-by-side
tools/check_for_upgrade.sh
View file @
d978f385
...
@@ -25,7 +25,9 @@ function update_last_updated_file() {
...
@@ -25,7 +25,9 @@ function update_last_updated_file() {
function
update_ohmyzsh
()
{
function
update_ohmyzsh
()
{
ZSH
=
"
$ZSH
"
zsh
-f
"
$ZSH
/tools/upgrade.sh"
--interactive
ZSH
=
"
$ZSH
"
zsh
-f
"
$ZSH
/tools/upgrade.sh"
--interactive
if
[[
"
$?
"
=
(
0|80
)
]]
;
then
update_last_updated_file
update_last_updated_file
fi
}
}
()
{
()
{
...
...
tools/upgrade.sh
View file @
d978f385
#!/usr/bin/env zsh
#!/usr/bin/env zsh
if
[
-z
"
$ZSH_VERSION
"
]
;
then
if
[
-z
"
$ZSH_VERSION
"
]
;
then
exec
zsh
"
$0
"
exec
zsh
"
$0
"
"
$@
"
fi
fi
cd
"
$ZSH
"
cd
"
$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