1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-11-03 20:51:16 +08:00

fix(check_for_upgrade): ensure compatibility with screen (#13302)

Co-authored-by: Paul Frederiksen <pfrederiksen@Pauls-Laptop.local>
This commit is contained in:
Paul Frederiksen 2025-09-19 06:47:45 -07:00 committed by GitHub
parent 34d6932b08
commit d3888251ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -232,7 +232,7 @@ function handle_update() {
# Ask for confirmation and only update on 'y', 'Y' or Enter
# Otherwise just show a reminder for how to update
echo -n "[oh-my-zsh] Would you like to update? [Y/n] "
printf "[oh-my-zsh] Would you like to update? [Y/n] "
read -r -k 1 option
[[ "$option" = $'\n' ]] || echo
case "$option" in
@ -280,7 +280,7 @@ case "$update_mode" in
return 0
elif [[ "$EXIT_STATUS" -ne 0 ]]; then
print -P "\n%F{red}[oh-my-zsh] There was an error updating:%f"
printf "\n${fg[yellow]}%s${reset_color}" "$ERROR"
printf "\n${fg[yellow]}%s${reset_color}" "${ERROR}"
return 0
fi
} always {