mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-28 19:33:03 +01:00
fix(updater): don't show changelog when running unattended update (#9495)
Fixes #9495
This commit is contained in:
1 parent
fa1911f89e
commit
5a888ff4ac
4 files changed
+15
-7
No files matched your search
@@ -24,7 +24,7 @@ function update_last_updated_file() {
|
||||
}
|
||||
|
||||
function update_ohmyzsh() {
|
||||
ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh"
|
||||
ZSH="$ZSH" zsh -f "$ZSH/tools/upgrade.sh" --interactive
|
||||
update_last_updated_file
|
||||
}
|
||||
|
||||
|
||||
+6
-4
@@ -70,10 +70,12 @@ if git pull --rebase --stat origin master; then
|
||||
message="Hooray! Oh My Zsh has been updated!"
|
||||
|
||||
# Display changelog with less if available, otherwise just print it to the terminal
|
||||
if (( $+commands[less] )); then
|
||||
"$ZSH/tools/changelog.sh" HEAD "$last_commit" --text | command less -R
|
||||
else
|
||||
"$ZSH/tools/changelog.sh" HEAD "$last_commit"
|
||||
if [[ "$1" = --interactive ]]; then
|
||||
if (( $+commands[less] )); then
|
||||
"$ZSH/tools/changelog.sh" HEAD "$last_commit" --text | LESS= command less -R
|
||||
else
|
||||
"$ZSH/tools/changelog.sh" HEAD "$last_commit"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user