Browse Source

Merge branch 'feature/sbotserver' into develop

Daniel Gibbs 7 năm trước cách đây
mục cha
commit
c7b083fc32

+ 1 - 1
lgsm/data/serverlist.csv

@@ -64,7 +64,7 @@ ricochet,ricochetserver,Ricochet
 rust,rustserver,Rust
 rw,rwserver, Rising World
 samp,sampserver,San Andreas Multiplayer
-sbot,sbotserver, StickyBots
+sbots,sbotsserver, StickyBots
 ss3,ss3server,Serious Sam 3: BFE
 sb,sbserver,Starbound
 st,stserver,Stationeers

+ 1 - 1
lgsm/functions/check_deps.sh

@@ -431,7 +431,7 @@ fn_deps_build_redhat(){
 	## CentOS 6
 	if [ "${distroversion}" == "6" ]; then
 		array_deps_required=( epel-release curl wget util-linux-ng python file gzip bzip2 unzip binutils bc jq )
-	if [ "${distroversion}" == "7" ]; then
+	elif [ "${distroversion}" == "7" ]; then
 		array_deps_required=( epel-release curl wget util-linux python file gzip bzip2 unzip binutils bc jq )
 	elif [ "${distroid}" == "fedora" ]; then
 			array_deps_required=( curl wget util-linux python2 file gzip bzip2 unzip binutils bc jq )

+ 1 - 1
lgsm/functions/query_gamedig.sh

@@ -118,7 +118,7 @@ if [ "$(command -v gamedig 2>/dev/null)" ]&&[ "$(command -v jq 2>/dev/null)" ];
 
 		# numbots
 		gdbots=$(echo "${gamedigraw}" | jq -re '.raw.numbots')
-		if [ "${gdbots}" == "null" ]; then
+		if [ "${gdbots}" == "null" ]||[ "${gdbots}" == "0" ]; then
 			unset gdbots
 		fi
 	fi