Allow using upper-cased "Y" to answer questions (#45)

This commit is contained in:
FLGX
2020-08-15 19:18:32 +02:00
committed by GitHub
parent 0c8886a2b2
commit ec0fcc15d2
6 changed files with 37 additions and 37 deletions

View File

@@ -147,7 +147,7 @@ if [ "$1" == "install" ]; then
if make -j ${_thread_num} deb-pkg LOCALVERSION=-${_kernel_flavor}; then
msg2 "Building successfully finished!"
read -p "Do you want to install the new Kernel ? y/[n]: " _install
if [ $_install == "y" ] || [ $_install == "Y" ] || [ $_install == "yes" ] || [ $_install == "Yes" ]; then
if [[ $_install =~ [yY] ]] || [[ $_install =~ [yY] ]] || [ $_install == "yes" ] || [ $_install == "Yes" ]; then
cd "$_where"
_kernelname=$_basekernel.$_kernel_subver-$_kernel_flavor
_headers_deb=linux-headers-${_kernelname}*.deb