feat: improve error message for unknown game server (#4218)

The code changes modify the error message displayed when an unknown game server is entered. The new message now capitalizes the first letter of "unknown" and adds an exit status of 1 to terminate the script.
This commit is contained in:
Daniel Gibbs 2023-05-29 00:05:18 +01:00 committed by GitHub
parent 29ff74cba3
commit 7ddbbfd64a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 5 deletions

View File

@ -369,7 +369,8 @@ if [ "${shortname}" == "core" ]; then
if [ "${userinput}" == "${gameservername}" ] || [ "${userinput}" == "${gamename}" ] || [ "${userinput}" == "${shortname}" ]; then
fn_install_file
else
echo -e "[ FAIL ] unknown game server"
echo -e "[ FAIL ] Unknown game server"
exit 1
fi
else
fn_install_getopt

View File

@ -369,7 +369,7 @@ if [ "${shortname}" == "core" ]; then
if [ "${userinput}" == "${gameservername}" ] || [ "${userinput}" == "${gamename}" ] || [ "${userinput}" == "${shortname}" ]; then
fn_install_file
else
echo -e "[ FAIL ] unknown game server"
echo -e "[ FAIL ] Unknown game server"
fi
else
fn_install_getopt

View File

@ -370,7 +370,7 @@ if [ "${shortname}" == "core" ]; then
if [ "${userinput}" == "${gameservername}" ] || [ "${userinput}" == "${gamename}" ] || [ "${userinput}" == "${shortname}" ]; then
fn_install_file
else
echo -e "[ FAIL ] unknown game server"
echo -e "[ FAIL ] Unknown game server"
fi
else
fn_install_getopt

View File

@ -370,7 +370,7 @@ if [ "${shortname}" == "core" ]; then
if [ "${userinput}" == "${gameservername}" ] || [ "${userinput}" == "${gamename}" ] || [ "${userinput}" == "${shortname}" ]; then
fn_install_file
else
echo -e "[ FAIL ] unknown game server"
echo -e "[ FAIL ] Unknown game server"
fi
else
fn_install_getopt

View File

@ -370,7 +370,7 @@ if [ "${shortname}" == "core" ]; then
if [ "${userinput}" == "${gameservername}" ] || [ "${userinput}" == "${gamename}" ] || [ "${userinput}" == "${shortname}" ]; then
fn_install_file
else
echo -e "[ FAIL ] unknown game server"
echo -e "[ FAIL ] Unknown game server"
fi
else
fn_install_getopt