Daniel Gibbs 5 лет назад
Родитель
Сommit
a62d9236a3
3 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      lgsm/functions/check_status.sh
  2. 1 1
      lgsm/functions/fix_squad.sh
  3. 1 1
      lgsm/functions/query_gamedig.sh

+ 2 - 2
lgsm/functions/check_status.sh

@@ -8,7 +8,7 @@
 functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
 
 if [ "$(tmux list-sessions -F "#{session_name}" 2>/dev/null)" == "${sessionname}${port}" ]; then
-		status=1;
+	status=1;
 else
-		status=0;
+	status=0;
 fi

+ 1 - 1
lgsm/functions/fix_squad.sh

@@ -6,7 +6,7 @@
 
 # As the server base dir changed for the game, we need to migrate the default config from the old to the new location
 oldservercfg="${serverfiles}/Squad/ServerConfig/${servercfg}"
-if [ -f "${oldservercfg}" ] && [ -f "${servercfgfullpath}" ]; then
+if [ -f "${oldservercfg}" ]&&[ -f "${servercfgfullpath}" ]; then
 	# diff old and new config - if it is different move the old config over the new one
 	if [ "$(diff -c "${oldservercfg}" "${servercfgfullpath}" | wc -l)" -gt 0 ]; then
 		fixname="Migrate server config to new Game folder"

+ 1 - 1
lgsm/functions/query_gamedig.sh

@@ -38,7 +38,7 @@ if [ "$(command -v gamedig 2>/dev/null)" ]&&[ "$(command -v jq 2>/dev/null)" ];
 		fi
 		if [ "${gdplayers}" == "null" ]; then
 			unset gdplayers
-		elif [ "${gdplayers}" == "[]" ] || [ "${gdplayers}" == "-1" ]; then
+		elif [ "${gdplayers}" == "[]" ]||[ "${gdplayers}" == "-1" ]; then
 			gdplayers=0
 		fi