mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2025-01-08 12:07:37 +08:00
fix(linuxgsm.sh): fix bug causing serverlist.csv to keep loading
This commit is contained in:
parent
2b417be1c5
commit
65d3053853
16
linuxgsm.sh
16
linuxgsm.sh
@ -58,8 +58,6 @@ core_functions.sh(){
|
||||
|
||||
# Bootstrap
|
||||
# Fetches the core functions required before passed off to core_dl.sh.
|
||||
|
||||
# Fetches core functions.
|
||||
fn_bootstrap_fetch_file(){
|
||||
remote_fileurl="${1}"
|
||||
local_filedir="${2}"
|
||||
@ -274,15 +272,15 @@ if [ "$(whoami)" == "root" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Download the latest serverlist. This is the complete list of all supported servers.
|
||||
fn_bootstrap_fetch_file_github "lgsm/data" "serverlist.csv" "${datadir}" "nochmodx" "norun" "forcedl" "nomd5"
|
||||
if [ ! -f "${serverlist}" ]; then
|
||||
echo "[ FAIL ] serverlist.csv could not be loaded."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# LinuxGSM installer mode.
|
||||
if [ "${shortname}" == "core" ]; then
|
||||
# Download the latest serverlist. This is the complete list of all supported servers.
|
||||
fn_bootstrap_fetch_file_github "lgsm/data" "serverlist.csv" "${datadir}" "nochmodx" "norun" "forcedl" "nomd5"
|
||||
if [ ! -f "${serverlist}" ]; then
|
||||
echo "[ FAIL ] serverlist.csv could not be loaded."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "${userinput}" == "list" ]||[ "${userinput}" == "l" ]; then
|
||||
{
|
||||
tail -n +2 "${serverlist}" | awk -F "," '{print $2 "\t" $3}'
|
||||
|
Loading…
Reference in New Issue
Block a user