From deab85d30b494b7f618e66bc9ade78b450234b3f Mon Sep 17 00:00:00 2001 From: jaimergp Date: Mon, 25 Sep 2023 11:03:28 +0200 Subject: [PATCH 1/2] Require explicit answer in SH license prompt --- constructor/header.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/constructor/header.sh b/constructor/header.sh index 942ceee3e..4002cb070 100644 --- a/constructor/header.sh +++ b/constructor/header.sh @@ -266,10 +266,10 @@ __LICENSE__ EOF printf "\\n" printf "Do you accept the license terms? [yes|no]\\n" - printf "[no] >>> " + printf ">>> " read -r ans ans=$(echo "${ans}" | tr '[:lower:]' '[:upper:]') - while [ "$ans" != "YES" ] && [ "$ans" != "NO" ] && [ "$ans" != "" ] + while [ "$ans" != "YES" ] && [ "$ans" != "NO" ] do printf "Please answer 'yes' or 'no':'\\n" printf ">>> " From 173f624ea005437b7044b5a6b99a823594e91da5 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Mon, 25 Sep 2023 11:08:06 +0200 Subject: [PATCH 2/2] add news --- news/722-license-yn | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 news/722-license-yn diff --git a/news/722-license-yn b/news/722-license-yn new file mode 100644 index 000000000..3c74bb242 --- /dev/null +++ b/news/722-license-yn @@ -0,0 +1,19 @@ +### Enhancements + +* + +### Bug fixes + +* Fix a regression in the license prompt on SH installers to require a explicit answer instead of defaulting to `no` on Enter. (#721 via #722) + +### Deprecations + +* + +### Docs + +* + +### Other + +*