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

@@ -78,7 +78,7 @@ else
warning "Something is wrong with your cpusched selection. Do you want to fallback to CFS (default)?"
read -rp "`echo $' > N/y : '`" _fallback;
fi
if [ "$_fallback" == "y" ] || [ "$_nofallback" == "true" ]; then
if [[ "$_fallback" =~ [yY] ]] || [ "$_nofallback" == "true" ]; then
echo "_cpusched=\"cfs\"" > "$_where"/cpuschedset
else
error "Exiting..."