mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-16 01:16:45 +08:00
fix(updater): refresh date of last update only on successful update
This commit is contained in:
1 parent
cd4918c2cd
commit
d978f385e5
2 files changed
+4
-2
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
() {
|
||||
|
||||
Reference in new issue
Block a user