From 2072bc187c3cadeee02879fcf583c79f51235bed Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 24 Jan 2021 14:24:55 +0000 Subject: [PATCH] fix if --- linuxgsm.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/linuxgsm.sh b/linuxgsm.sh index 1e413ce22..05287ccc0 100644 --- a/linuxgsm.sh +++ b/linuxgsm.sh @@ -387,18 +387,18 @@ else else echo -e "OK" fi - fi - else - function_file_diff=$(diff -q "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" "${configdirserver}/_default.cfg") - if [ "${function_file_diff}" != "" ]; then - fn_print_warn_nl "_default.cfg has altered. reloading config." - echo -en "copying _default.cfg...\c" - cp -R "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" "${configdirserver}/_default.cfg" - if [ $? != 0 ]; then - echo -e "FAIL" - exit 1 - else - echo -e "OK" + else + function_file_diff=$(diff -q "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" "${configdirserver}/_default.cfg") + if [ "${function_file_diff}" != "" ]; then + fn_print_warn_nl "_default.cfg has altered. reloading config." + echo -en "copying _default.cfg...\c" + cp -R "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" "${configdirserver}/_default.cfg" + if [ $? != 0 ]; then + echo -e "FAIL" + exit 1 + else + echo -e "OK" + fi fi fi fi