summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2020-12-04 12:33:36 +0100
committerMarc Cornellà <marc.cornella@live.com>2020-12-04 12:33:36 +0100
commit81bbe86db0fd039c2b781b7466214ffaf19e3ca0 (patch)
tree0b53e0a6138cdc10a39b9b9f64c2a6f7a5581e1b
parent1ac40cd4456230f09bf0258b173304929d118992 (diff)
downloadzsh-81bbe86db0fd039c2b781b7466214ffaf19e3ca0.tar.gz
zsh-81bbe86db0fd039c2b781b7466214ffaf19e3ca0.tar.bz2
zsh-81bbe86db0fd039c2b781b7466214ffaf19e3ca0.zip
fix(updater): properly show changelog via `less`
-rwxr-xr-xtools/upgrade.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/upgrade.sh b/tools/upgrade.sh
index 2edf5b059..0e4c368bc 100755
--- a/tools/upgrade.sh
+++ b/tools/upgrade.sh
@@ -71,7 +71,7 @@ if git pull --rebase --stat origin master; then
# Display changelog with less if available, otherwise just print it to the terminal
if (( $+commands[less] )); then
- command less -R <("$ZSH/tools/changelog.sh" HEAD "$last_commit")
+ "$ZSH/tools/changelog.sh" HEAD "$last_commit" --text | command less -R
else
"$ZSH/tools/changelog.sh" HEAD "$last_commit"
fi