fix(updater): don't pipe changelog to less when updating
Fixes #9509
Diff
1diff --git a/tools/upgrade.sh b/tools/upgrade.sh
2index 4df7eb184e4bf8566e4f7ea4b20dbdc6a20109b6..358242d0f3b1529d53152c3b2196c7b0eed7b793 100755
3--- a/tools/upgrade.sh
4+++ b/tools/upgrade.sh
5@@ -75,14 +75,10 @@ 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 [[ "$1" = --interactive ]]; then
9- if (( $+commands[less] )); then
10- "$ZSH/tools/changelog.sh" HEAD "$last_commit" --text | LESS= command less -R
11- else
12- "$ZSH/tools/changelog.sh" HEAD "$last_commit"
13- fi
14+ "$ZSH/tools/changelog.sh" HEAD "$last_commit"
15 fi
1617- printf "${BLUE}%s \`${BOLD}%s${RESET}${BLUE}\`${RESET}\n" "You can see the changelog again with" "omz changelog"
18+ printf "${BLUE}%s \`${BOLD}%s${RESET}${BLUE}\`${RESET}\n" "You can see the changelog with" "omz changelog"
19 fi
2021 printf '%s %s__ %s %s %s %s %s__ %s\n' $RAINBOW $RESET