From a6ec9c50b8079e6747160dc959582aaa5a56e724 Mon Sep 17 00:00:00 2001 From: luk Date: Sat, 18 Jul 2026 21:37:42 +0800 Subject: [PATCH] improve slightly the user experience of the script, add a blank line before the prompt, and add a prefix to the prompt to make it more clear that it's a prompt for user input. --- debian-update.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debian-update.sh b/debian-update.sh index ec216a2..f76c784 100644 --- a/debian-update.sh +++ b/debian-update.sh @@ -3,8 +3,7 @@ ## "curl -s https://git.tic.cc/opx/sysconfig/raw/branch/main/debian-update.sh | bash" echo "Update the current Debian major version to the next newer major version. For instance, update 11 to 12, or 12 to 13" -echo "Usage: this.sh" -echo "Example: this.sh" +echo if [ -f /etc/debian_version ]; then OsTypeNow="Debian" @@ -37,10 +36,11 @@ else exit 1 fi -echo "Are you sure to update $OsTypeNow $CodeNameNow to $CodeNameNext?" +echo "::*** Are you sure to update $OsTypeNow $CodeNameNow to $CodeNameNext?" echo " [y] Yes, update now" echo " [anything else] No, cancel update" -read -r answer +echo +read -r "***:: " answer if [ "$answer" != "y" ]; then echo "Update canceled." exit 0