diff options
author | HÃ¥vard Bartnes <haavard.bartnes@gmail.com> | 2023-03-28 12:50:05 +0200 |
---|---|---|
committer | Carlo Sala <carlosalag@protonmail.com> | 2023-03-28 12:58:33 +0200 |
commit | 8f6fbe238969ecb22fbdae75450a9f8705c9f979 (patch) | |
tree | c42476482f58cc193379292f3de1f1d1665c3265 /tools/check_for_upgrade.sh | |
parent | c08b925d282e35ea7bd9a8f4c29de2ece0debb49 (diff) | |
download | zsh-8f6fbe238969ecb22fbdae75450a9f8705c9f979.tar.gz zsh-8f6fbe238969ecb22fbdae75450a9f8705c9f979.tar.bz2 zsh-8f6fbe238969ecb22fbdae75450a9f8705c9f979.zip |
feat(upgrade): add verbosity settings
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
Closes #11574
Closes #11579
Diffstat (limited to 'tools/check_for_upgrade.sh')
-rw-r--r-- | tools/check_for_upgrade.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh index 734714c94..81c371b3f 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -95,7 +95,8 @@ function update_last_updated_file() { } function update_ohmyzsh() { - if ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" --interactive; then + zstyle -s ':omz:update' verbose verbose_mode || verbose_mode=default + if ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" -i -v $verbose_mode; then update_last_updated_file fi } |