From 6424ca0ead69d278c0969a6a1f72103e500fff52 Mon Sep 17 00:00:00 2001 From: rlaope Date: Thu, 5 Mar 2026 11:47:12 +0900 Subject: [PATCH] feat: allow backspace correction in update prompt --- tools/check_for_upgrade.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh index 44dbb7b31..4c97cbb19 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -233,10 +233,9 @@ function handle_update() { # Ask for confirmation and only update on 'y', 'Y' or Enter # Otherwise just show a reminder for how to update printf "[oh-my-zsh] Would you like to update? [Y/n] " - read -r -k 1 option - [[ "$option" = $'\n' ]] || echo + read -r option case "$option" in - [yY$'\n']) update_ohmyzsh ;; + [yY]|"") update_ohmyzsh ;; [nN]) update_last_updated_file ;& *) echo "[oh-my-zsh] You can update manually by running \`omz update\`" ;; esac