summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Frederiksen <paul@paulfrederiksen.com>2025-09-19 06:47:45 -0700
committerGitHub <noreply@github.com>2025-09-19 15:47:45 +0200
commitd3888251acae61f0ce2c7a780e97a5d2f406bd9f (patch)
treeb7ba53d63ee1a8db7c1854b4888825932f3e7301
parent34d6932b081055901ee95512eae5935a11bb51cd (diff)
downloadzsh-d3888251acae61f0ce2c7a780e97a5d2f406bd9f.tar.gz
zsh-d3888251acae61f0ce2c7a780e97a5d2f406bd9f.tar.bz2
zsh-d3888251acae61f0ce2c7a780e97a5d2f406bd9f.zip
fix(check_for_upgrade): ensure compatibility with screen (#13302)
Co-authored-by: Paul Frederiksen <pfrederiksen@Pauls-Laptop.local>
-rw-r--r--tools/check_for_upgrade.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
index 35391ea70..44dbb7b31 100644
--- a/tools/check_for_upgrade.sh
+++ b/tools/check_for_upgrade.sh
@@ -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 {