Skip to content

Commit

Permalink
code tidy
Browse files Browse the repository at this point in the history
codacy
  • Loading branch information
dgibbs64 committed Dec 4, 2020
1 parent e405e84 commit 6bf2351
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions lgsm/functions/core_dl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ fn_fetch_file_github(){
fn_fetch_config(){
github_file_url_dir="${1}"
github_file_url_name="${2}"
# If master branch will currently running LinuxGSM version to prevent "version mixing". This is ignored if a fork.
# If master branch will currently running LinuxGSM version to prevent "version mixing". This is ignored if a fork.
if [ "${githubbranch}" == "master" ]&&[ "${githubuser}" == "GameServerManager" ]&&[ "${commandname}" != "UPDATE-LGSM" ]; then
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_file_url_dir}/${github_file_url_name}"
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_file_url_dir}/${github_file_url_name}"
Expand Down Expand Up @@ -425,7 +425,7 @@ fn_fetch_function(){
fn_update_function(){
github_file_url_dir="lgsm/functions"
github_file_url_name="${functionfile}"
# If master branch will currently running LinuxGSM version to prevent "version mixing". This is ignored if a fork.
# If master branch will currently running LinuxGSM version to prevent "version mixing". This is ignored if a fork.
if [ "${githubbranch}" == "master" ]&&[ "${githubuser}" == "GameServerManager" ]&&[ "${commandname}" != "UPDATE-LGSM" ]; then
remote_fileurl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${version}/${github_file_url_dir}/${github_file_url_name}"
remote_fileurl_backup="https://bitbucket.org/${githubuser}/${githubrepo}/raw/${version}/${github_file_url_dir}/${github_file_url_name}"
Expand Down
2 changes: 1 addition & 1 deletion lgsm/functions/install_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down
14 changes: 7 additions & 7 deletions lgsm/functions/mods_core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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}
Expand All @@ -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}
Expand All @@ -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}
Expand All @@ -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}
Expand All @@ -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
Expand All @@ -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}
Expand Down

0 comments on commit 6bf2351

Please sign in to comment.