feat(upgrade): add verbosity settings

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>

Closes #11574
Closes #11579
This commit is contained in:
Håvard Bartnes authored and Carlo Sala committed 2023-03-28 12:58:33 +02:00
1 parent c08b925d28
commit 8f6fbe2389
4 files changed
+56 -17

No files matched your search

+2 -1
View File
@@ -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
}