mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
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:
parent
29ff74cba3
commit
7ddbbfd64a
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user