Browse Source

code tidy

codacy
pull/3120/head
Daniel Gibbs 4 years ago
parent
commit
6bf2351a77
  1. 2
      lgsm/functions/install_config.sh
  2. 14
      lgsm/functions/mods_core.sh

2
lgsm/functions/install_config.sh

@ -576,7 +576,7 @@ elif [ "${shortname}" == "mumble" ]; then
fn_fetch_default_config
fn_default_config_remote
fn_list_config_locations
elif [ "${gamename}" == "Pavlov VR" ]; then
elif [ "${shortname}" == "pvr" ]; then
gamedirname="PavlovVR"
fn_check_cfgdir
array_configs+=( Game.ini )

14
lgsm/functions/mods_core.sh

@ -609,7 +609,7 @@ fn_mod_install_liblist_gam_file(){
exitcode=$?
# if replacement back didn't happen, error out.
if [ "${exitcode}" != 0 ]; then
fn_script_log_fatal ${logentry}
fn_script_log_fatal "${logentry}"
fn_print_fail_eol_nl
else
fn_script_log_pass ${logentry}
@ -633,7 +633,7 @@ fn_mod_remove_liblist_gam_file(){
exitcode=$?
# if replacement back didn't happen, error out.
if [ "${exitcode}" != 0 ]; then
fn_script_log_fatal ${logentry}
fn_script_log_fatal "${logentry}"
fn_print_fail_eol_nl
else
fn_script_log_pass ${logentry}
@ -649,7 +649,7 @@ fn_mod_remove_liblist_gam_file(){
exitcode=$?
# if replacement back didn't happen, error out
if [ "${exitcode}" != 0 ]; then
fn_script_log_fatal ${logentry}
fn_script_log_fatal "${logentry}"
fn_print_fail_eol_nl
else
fn_script_log_pass ${logentry}
@ -667,7 +667,7 @@ fn_mod_remove_liblist_gam_file(){
# if replacement back didn't happen, error out.
exitcode=$?
if [ "${exitcode}" != 0 ]; then
fn_script_log_fatal ${logentry}
fn_script_log_fatal "${logentry}"
fn_print_fail_eol_nl
else
fn_script_log_pass ${logentry}
@ -690,7 +690,7 @@ fn_mod_install_amxmodx_file(){
echo "linux addons/amxmodx/dlls/amxmodx_mm_i386.so" >> "${modinstalldir}/addons/metamod/plugins.ini"
exitcode=$?
if [ "${exitcode}" != 0 ]; then
fn_script_log_fatal ${logentry}
fn_script_log_fatal "${logentry}"
fn_print_fail_eol_nl
else
fn_script_log_pass ${logentry}
@ -702,7 +702,7 @@ fn_mod_install_amxmodx_file(){
echo "linux addons/amxmodx/dlls/amxmodx_mm_i386.so" > "${modinstalldir}/addons/metamod/plugins.ini"
exitcode=$?
if [ "${exitcode}" != 0 ]; then
fn_script_log_fatal ${logentry}
fn_script_log_fatal "${logentry}"
fn_print_fail_eol_nl
core_exit.sh
else
@ -727,7 +727,7 @@ fn_mod_remove_amxmodx_file(){
sed -i '/^$/d' "${modinstalldir}/addons/metamod/plugins.ini"
exitcode=$?
if [ "${exitcode}" != 0 ]; then
fn_script_log_fatal ${logentry}
fn_script_log_fatal "${logentry}"
fn_print_fail_eol_nl
else
fn_script_log_pass ${logentry}

Loading…
Cancel
Save