mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
fix(updater): refresh date of last update only on successful update
This commit is contained in:
@@ -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