summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2020-12-28 19:35:43 +0100
committerMarc Cornellà <marc.cornella@live.com>2020-12-28 19:40:03 +0100
commit4b2431e8b1c08a2dc14fe31bf07a5e5f08eaa87e (patch)
treea6b183b658a72f9e2e658c791f1d6fa1ce82b542 /tools
parent90ffda7ed28dd8273b80bd262c6a28be65e4da71 (diff)
downloadzsh-4b2431e8b1c08a2dc14fe31bf07a5e5f08eaa87e.tar.gz
zsh-4b2431e8b1c08a2dc14fe31bf07a5e5f08eaa87e.tar.bz2
zsh-4b2431e8b1c08a2dc14fe31bf07a5e5f08eaa87e.zip
fix(updater): don't pipe changelog to less when updating
Fixes #9509
Diffstat (limited to 'tools')
-rwxr-xr-xtools/upgrade.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/upgrade.sh b/tools/upgrade.sh
index 4df7eb184..358242d0f 100755
--- a/tools/upgrade.sh
+++ b/tools/upgrade.sh
@@ -75,14 +75,10 @@ if git pull --rebase --stat origin master; then
# Display changelog with less if available, otherwise just print it to the terminal
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
+ "$ZSH/tools/changelog.sh" HEAD "$last_commit"
fi
- printf "${BLUE}%s \`${BOLD}%s${RESET}${BLUE}\`${RESET}\n" "You can see the changelog again with" "omz changelog"
+ printf "${BLUE}%s \`${BOLD}%s${RESET}${BLUE}\`${RESET}\n" "You can see the changelog with" "omz changelog"
fi
printf '%s %s__ %s %s %s %s %s__ %s\n' $RAINBOW $RESET