From a42092bc7556aac3c07c45a3ed01e58d23b21bc5 Mon Sep 17 00:00:00 2001 From: Jared Ballou Date: Tue, 19 Jan 2016 04:18:33 -0500 Subject: [PATCH] More hash updates --- Insurgency/insserver | 2 +- functions/game_settings.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Insurgency/insserver b/Insurgency/insserver index fe8af49a1..c1dd26a07 100755 --- a/Insurgency/insserver +++ b/Insurgency/insserver @@ -4,7 +4,7 @@ # Author: Daniel Gibbs # Website: http://gameservermanagers.com -version="180116" +version="190116" # File fetching settings # Github Branch Select diff --git a/functions/game_settings.sh b/functions/game_settings.sh index 349d60abd..531d2f258 100644 --- a/functions/game_settings.sh +++ b/functions/game_settings.sh @@ -131,7 +131,10 @@ fn_flush_game_settings fn_import_game_settings $selfname # New method is to always run this function, it will overwrite defaults with whatever the new script values are -fn_create_config default +cfg_version_default=$(grep lgsm_version "${cfg_file_default}" 2>&1 | cut -d'=' -f2 | sed -e 's/"//g') +if [ "${cfg_version}" != "${version}" ]; then + fn_create_config default 1 +fi # Load defaults source $cfg_file_default