From f36c1518f5130f5a899232316a64f0f600e2368a Mon Sep 17 00:00:00 2001 From: Jared Ballou Date: Tue, 19 Jan 2016 13:14:08 -0500 Subject: [PATCH] Added git_update variable to control the Git updates, it keeps fixing my local files since the hashes don't match. --- Insurgency/insserver | 3 +++ functions/github_hash.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Insurgency/insserver b/Insurgency/insserver index c1dd26a07..4254ce3c6 100755 --- a/Insurgency/insserver +++ b/Insurgency/insserver @@ -14,6 +14,9 @@ githubuser="jaredballou" githubrepo="linuxgsm" githubbranch="master" +# Update stale files on the fly using Git +git_update=0 + #### Variables #### # The name of this script file, used to show the LGSM link properly diff --git a/functions/github_hash.sh b/functions/github_hash.sh index a722a6a60..fbc3fd1e6 100755 --- a/functions/github_hash.sh +++ b/functions/github_hash.sh @@ -60,6 +60,9 @@ fn_get_github_manifest(){ # Check files against manifest fn_check_github_files(){ + # Return unless turned on + if [ "${git_update}" != "1" ]; then return; fi + prefix=$1 files=${@:2} fn_get_github_manifest