d3888251acae61f0ce2c7a780e97a5d2f406bd9f

Author
Paul Frederiksen <paul@paulfrederiksen.com>
Committer
GitHub <noreply@github.com>
Date

Message

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

Co-authored-by: Paul Frederiksen <pfrederiksen@Pauls-Laptop.local>

Diff

 1diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
 2index 35391ea70e30d248993682e2a05a23e32d07e6d6..44dbb7b311787d5ae1fbfe0c752799f0768bd077 100644
 3--- a/tools/check_for_upgrade.sh
 4+++ b/tools/check_for_upgrade.sh
 5@@ -232,7 +232,7 @@ function handle_update() {
 6 
 7     # Ask for confirmation and only update on 'y', 'Y' or Enter
 8     # Otherwise just show a reminder for how to update
 9-    echo -n "[oh-my-zsh] Would you like to update? [Y/n] "
10+    printf "[oh-my-zsh] Would you like to update? [Y/n] "
11     read -r -k 1 option
12     [[ "$option" = $'\n' ]] || echo
13     case "$option" in
14@@ -280,7 +280,7 @@ case "$update_mode" in
15           return 0
16         elif [[ "$EXIT_STATUS" -ne 0 ]]; then
17           print -P "\n%F{red}[oh-my-zsh] There was an error updating:%f"
18-          printf "\n${fg[yellow]}%s${reset_color}" "$ERROR"
19+          printf "\n${fg[yellow]}%s${reset_color}" "${ERROR}"
20           return 0
21         fi
22       } always {