mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
Allowed game name as possible argument for install and improved output
This commit is contained in:
parent
f2200989cf
commit
f1d6714f2b
10
linuxgsm.sh
10
linuxgsm.sh
@ -229,9 +229,9 @@ fn_install_getopt(){
|
||||
echo "https://gameservermanagers.com"
|
||||
echo -e ""
|
||||
echo -e "Commands"
|
||||
echo -e "install |Select server to install."
|
||||
echo -e "servername |e.g $0 csgoserver. Enter the required servername will install it."
|
||||
echo -e "list |List all servers available for install."
|
||||
echo -e "install\t\t|Select server to install."
|
||||
echo -e "servername\t|e.g $0 csgoserver. Enter name of server/game to install."
|
||||
echo -e "list\t\t|List all servers available for install."
|
||||
exit
|
||||
}
|
||||
|
||||
@ -307,8 +307,10 @@ if [ "${shortname}" == "core" ]; then
|
||||
fi
|
||||
elif [ -n "${userinput}" ]; then
|
||||
fn_server_info
|
||||
if [ "${userinput}" == "${gameservername}" ]; then
|
||||
if [ "${userinput}" == "${gameservername}" ]||[ "${userinput}" == "${gamename}" ]||[ "${userinput}" == "${shortname}" ]; then
|
||||
fn_install_file
|
||||
else
|
||||
echo "[ FAIL ] unknown game server"
|
||||
fi
|
||||
else
|
||||
fn_install_getopt
|
||||
|
Loading…
Reference in New Issue
Block a user