From 601d5ba1f358945e371045a75916afb8cb6359b1 Mon Sep 17 00:00:00 2001 From: Marcus Date: Mon, 31 Jul 2023 20:36:39 +0200 Subject: [PATCH] make question prompt less confusing :) https://mastodon.green/@funkybuddha/110804357880667083 --- make-debian-look-like-ubuntu.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/make-debian-look-like-ubuntu.sh b/make-debian-look-like-ubuntu.sh index 020e50c..90df34e 100644 --- a/make-debian-look-like-ubuntu.sh +++ b/make-debian-look-like-ubuntu.sh @@ -96,9 +96,9 @@ error () confirm_continue() { - message warn "Type '${GREEN}yes${ENDCOLOR}' and hit [ENTER] to continue" - read -p "=> " continue - if [ "$continue" != "yes" ] + message warn "Type '${GREEN}y${ENDCOLOR}' or '${GREEN}yes${ENDCOLOR}' and hit [ENTER] to continue" + read -p "[y/N?] " continue + if [ "${continue,,}" != "y" ] && [ "${continue,,}" != "yes" ] then message error "Installation aborted." exit 1