81bbe86db0fd039c2b781b7466214ffaf19e3ca0

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

fix(updater): properly show changelog via `less`

Diff

 1diff --git a/tools/upgrade.sh b/tools/upgrade.sh
 2index 2edf5b05976467169b61e1b7e8f3307762b11705..0e4c368bc8a7c1d077353c9a61171ae1e127841d 100755
 3--- a/tools/upgrade.sh
 4+++ b/tools/upgrade.sh
 5@@ -71,7 +71,7 @@ if git pull --rebase --stat origin master; then
 6 
 7     # Display changelog with less if available, otherwise just print it to the terminal
 8     if (( $+commands[less] )); then
 9-      command less -R <("$ZSH/tools/changelog.sh" HEAD "$last_commit")
10+      "$ZSH/tools/changelog.sh" HEAD "$last_commit" --text | command less -R
11     else
12       "$ZSH/tools/changelog.sh" HEAD "$last_commit"
13     fi