1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-14 01:40:09 +00:00

fix(updater): don't pipe changelog to less when updating

Fixes #9509
This commit is contained in:
Marc Cornellà 2020-12-28 19:35:43 +01:00
parent 90ffda7ed2
commit 4b2431e8b1

View file

@ -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 # Display changelog with less if available, otherwise just print it to the terminal
if [[ "$1" = --interactive ]]; then 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" "$ZSH/tools/changelog.sh" HEAD "$last_commit"
fi fi
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 fi
printf '%s %s__ %s %s %s %s %s__ %s\n' $RAINBOW $RESET printf '%s %s__ %s %s %s %s %s__ %s\n' $RAINBOW $RESET