Browse Source

fix if

pull/3151/head
Daniel Gibbs 5 years ago
parent
commit
2072bc187c
  1. 24
      linuxgsm.sh

24
linuxgsm.sh

@ -387,18 +387,18 @@ else
else else
echo -e "OK" echo -e "OK"
fi fi
fi else
else function_file_diff=$(diff -q "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" "${configdirserver}/_default.cfg")
function_file_diff=$(diff -q "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" "${configdirserver}/_default.cfg") if [ "${function_file_diff}" != "" ]; then
if [ "${function_file_diff}" != "" ]; then fn_print_warn_nl "_default.cfg has altered. reloading config."
fn_print_warn_nl "_default.cfg has altered. reloading config." echo -en "copying _default.cfg...\c"
echo -en "copying _default.cfg...\c" cp -R "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" "${configdirserver}/_default.cfg"
cp -R "${configdirdefault}/config-lgsm/${gameservername}/_default.cfg" "${configdirserver}/_default.cfg" if [ $? != 0 ]; then
if [ $? != 0 ]; then echo -e "FAIL"
echo -e "FAIL" exit 1
exit 1 else
else echo -e "OK"
echo -e "OK" fi
fi fi
fi fi
fi fi

Loading…
Cancel
Save