diff --git a/constructor/header.sh b/constructor/header.sh index b8db07aa2..b21a5403a 100644 --- a/constructor/header.sh +++ b/constructor/header.sh @@ -268,10 +268,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 ">>> " 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 + +*