mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-25 13:51:57 +00:00
fix(updater): refresh date of last update only on successful update
This commit is contained in:
parent
cd4918c2cd
commit
d978f385e5
2 changed files with 4 additions and 2 deletions
|
@ -25,7 +25,9 @@ function update_last_updated_file() {
|
|||
|
||||
function update_ohmyzsh() {
|
||||
ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" --interactive
|
||||
update_last_updated_file
|
||||
if [[ "$?" = (0|80) ]]; then
|
||||
update_last_updated_file
|
||||
fi
|
||||
}
|
||||
|
||||
() {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
if [ -z "$ZSH_VERSION" ]; then
|
||||
exec zsh "$0"
|
||||
exec zsh "$0" "$@"
|
||||
fi
|
||||
|
||||
cd "$ZSH"
|
||||
|
|
Loading…
Reference in a new issue