Skip to content

Commit 6bf2351

Browse files
committed
code tidy
codacy
1 parent e405e84 commit 6bf2351

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

lgsm/functions/core_dl.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ fn_fetch_file_github(){
377377
fn_fetch_config(){
378378
github_file_url_dir="${1}"
379379
github_file_url_name="${2}"
380-
# If master branch will currently running LinuxGSM version to prevent "version mixing". This is ignored if a fork.
380+
# If master branch will currently running LinuxGSM version to prevent "version mixing". This is ignored if a fork.
381381
if [ "${githubbranch}" == "master" ]&&[ "${githubuser}" == "GameServerManager" ]&&[ "${commandname}" != "UPDATE-LGSM" ]; then
382382
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_file_url_dir}/${github_file_url_name}"
383383
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_file_url_dir}/${github_file_url_name}"
@@ -425,7 +425,7 @@ fn_fetch_function(){
425425
fn_update_function(){
426426
github_file_url_dir="lgsm/functions"
427427
github_file_url_name="${functionfile}"
428-
# If master branch will currently running LinuxGSM version to prevent "version mixing". This is ignored if a fork.
428+
# If master branch will currently running LinuxGSM version to prevent "version mixing". This is ignored if a fork.
429429
if [ "${githubbranch}" == "master" ]&&[ "${githubuser}" == "GameServerManager" ]&&[ "${commandname}" != "UPDATE-LGSM" ]; then
430430
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_file_url_dir}/${github_file_url_name}"
431431
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_file_url_dir}/${github_file_url_name}"

lgsm/functions/install_config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ elif [ "${shortname}" == "mumble" ]; then
576576
fn_fetch_default_config
577577
fn_default_config_remote
578578
fn_list_config_locations
579-
elif [ "${gamename}" == "Pavlov VR" ]; then
579+
elif [ "${shortname}" == "pvr" ]; then
580580
gamedirname="PavlovVR"
581581
fn_check_cfgdir
582582
array_configs+=( Game.ini )

lgsm/functions/mods_core.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ fn_mod_install_liblist_gam_file(){
609609
exitcode=$?
610610
# if replacement back didn't happen, error out.
611611
if [ "${exitcode}" != 0 ]; then
612-
fn_script_log_fatal ${logentry}
612+
fn_script_log_fatal "${logentry}"
613613
fn_print_fail_eol_nl
614614
else
615615
fn_script_log_pass ${logentry}
@@ -633,7 +633,7 @@ fn_mod_remove_liblist_gam_file(){
633633
exitcode=$?
634634
# if replacement back didn't happen, error out.
635635
if [ "${exitcode}" != 0 ]; then
636-
fn_script_log_fatal ${logentry}
636+
fn_script_log_fatal "${logentry}"
637637
fn_print_fail_eol_nl
638638
else
639639
fn_script_log_pass ${logentry}
@@ -649,7 +649,7 @@ fn_mod_remove_liblist_gam_file(){
649649
exitcode=$?
650650
# if replacement back didn't happen, error out
651651
if [ "${exitcode}" != 0 ]; then
652-
fn_script_log_fatal ${logentry}
652+
fn_script_log_fatal "${logentry}"
653653
fn_print_fail_eol_nl
654654
else
655655
fn_script_log_pass ${logentry}
@@ -667,7 +667,7 @@ fn_mod_remove_liblist_gam_file(){
667667
# if replacement back didn't happen, error out.
668668
exitcode=$?
669669
if [ "${exitcode}" != 0 ]; then
670-
fn_script_log_fatal ${logentry}
670+
fn_script_log_fatal "${logentry}"
671671
fn_print_fail_eol_nl
672672
else
673673
fn_script_log_pass ${logentry}
@@ -690,7 +690,7 @@ fn_mod_install_amxmodx_file(){
690690
echo "linux addons/amxmodx/dlls/amxmodx_mm_i386.so" >> "${modinstalldir}/addons/metamod/plugins.ini"
691691
exitcode=$?
692692
if [ "${exitcode}" != 0 ]; then
693-
fn_script_log_fatal ${logentry}
693+
fn_script_log_fatal "${logentry}"
694694
fn_print_fail_eol_nl
695695
else
696696
fn_script_log_pass ${logentry}
@@ -702,7 +702,7 @@ fn_mod_install_amxmodx_file(){
702702
echo "linux addons/amxmodx/dlls/amxmodx_mm_i386.so" > "${modinstalldir}/addons/metamod/plugins.ini"
703703
exitcode=$?
704704
if [ "${exitcode}" != 0 ]; then
705-
fn_script_log_fatal ${logentry}
705+
fn_script_log_fatal "${logentry}"
706706
fn_print_fail_eol_nl
707707
core_exit.sh
708708
else
@@ -727,7 +727,7 @@ fn_mod_remove_amxmodx_file(){
727727
sed -i '/^$/d' "${modinstalldir}/addons/metamod/plugins.ini"
728728
exitcode=$?
729729
if [ "${exitcode}" != 0 ]; then
730-
fn_script_log_fatal ${logentry}
730+
fn_script_log_fatal "${logentry}"
731731
fn_print_fail_eol_nl
732732
else
733733
fn_script_log_pass ${logentry}

0 commit comments

Comments
 (0)