mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
fix(install): fix menu missing first server off list (#3196)
This commit is contained in:
parent
67e7e61364
commit
2816217027
0
lgsm/functions/update_minecraft.sh
Executable file → Normal file
0
lgsm/functions/update_minecraft.sh
Executable file → Normal file
@ -338,11 +338,11 @@ if [ "${shortname}" == "core" ]; then
|
||||
|
||||
if [ "${userinput}" == "list" ]||[ "${userinput}" == "l" ]; then
|
||||
{
|
||||
tail -n +2 "${serverlist}" | awk -F "," '{print $2 "\t" $3}'
|
||||
tail -n +1 "${serverlist}" | awk -F "," '{print $2 "\t" $3}'
|
||||
} | column -s $'\t' -t | more
|
||||
exit
|
||||
elif [ "${userinput}" == "install" ]||[ "${userinput}" == "i" ]; then
|
||||
tail -n +2 "${serverlist}" | awk -F "," '{print $1 "," $2 "," $3}' > "${serverlistmenu}"
|
||||
tail -n +1 "${serverlist}" | awk -F "," '{print $1 "," $2 "," $3}' > "${serverlistmenu}"
|
||||
fn_install_menu result "LinuxGSM" "Select game server to install." "${serverlistmenu}"
|
||||
userinput="${result}"
|
||||
fn_server_info
|
||||
|
Loading…
Reference in New Issue
Block a user