From ff5f47eee06af5c7a4e6d4468cb0743c4663cb50 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 12 May 2023 22:56:36 +0100 Subject: [PATCH] looks for file called config and uses that --- .github/workflows/details-check.yml | 2 +- lgsm/modules/command_dev_details.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/details-check.yml b/.github/workflows/details-check.yml index 2fce33901..1817ae90b 100644 --- a/.github/workflows/details-check.yml +++ b/.github/workflows/details-check.yml @@ -23,7 +23,7 @@ jobs: run: LGSM_GITHUBBRANCH="feature/info_game-refactor" ./csgoserver developer - name: Download config - run: wget https://raw.githubusercontent.com/GameServerManagers/Game-Server-Configs/master/CounterStrikeGlobalOffensive/server.cfg + run: curl -o config https://raw.githubusercontent.com/GameServerManagers/Game-Server-Configs/master/CounterStrikeGlobalOffensive/server.cfg - name: Check details run: LGSM_GITHUBBRANCH="feature/info_game-refactor" ./csgoserver detect-details server.cfg diff --git a/lgsm/modules/command_dev_details.sh b/lgsm/modules/command_dev_details.sh index 8fbafa903..f6a398793 100644 --- a/lgsm/modules/command_dev_details.sh +++ b/lgsm/modules/command_dev_details.sh @@ -5,8 +5,8 @@ # Website: https://linuxgsm.com # Description: Dev only: Enables debugging log to be saved to dev-debug.log. -if [ -f "${2}" ]; then - servercfgfullpath="${2}" +if [ -f "config" ]; then + servercfgfullpath="config" fi info_game.sh