diff --git a/constructor/header.sh b/constructor/header.sh index 942ceee3..4002cb07 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 ">>> " diff --git a/news/722-license-yn b/news/722-license-yn new file mode 100644 index 00000000..3c74bb24 --- /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 + +*