Fix wrong condition when asking first

The second test was wrong, it exits if the user asks with a capital Y. Fix by exiting only if the answer from the user is different from a lowercase y AND a capital Y
This commit is contained in:
bisbastuner
2023-03-21 19:55:42 +01:00
committed by GitHub
parent 87e6397f27
commit 6ebce2bdce

View File

@@ -87,7 +87,7 @@ fi
# Ask first
printf "Setup Webmin official repository? (y/N) "
read -r sslyn
if [ "$sslyn" != "y" ] || [ "$sslyn" = "Y" ]; then
if [ "$sslyn" != "y" ] && [ "$sslyn" != "Y" ]; then
exit
fi