From 15be75d42d86a5c270cc1b0124528c6716652fe6 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 27 May 2017 11:34:33 +0100 Subject: [PATCH] github_file_url_dir was being changed if _default.cfg was downloaded --- lgsm/functions/command_update_linuxgsm.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lgsm/functions/command_update_linuxgsm.sh b/lgsm/functions/command_update_linuxgsm.sh index a91781c1b..69b60bab2 100644 --- a/lgsm/functions/command_update_linuxgsm.sh +++ b/lgsm/functions/command_update_linuxgsm.sh @@ -77,6 +77,7 @@ if [ -n "${functionsdir}" ]; then for functionfile in * do echo -ne " checking function ${functionfile}...\c" + github_file_url_dir="lgsm/functions" get_function_file=$(${curlpath} --fail -s "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${functionfile}") exitcode=$? function_file_diff=$(diff "${functionsdir}/${functionfile}" <(${curlpath} --fail -s "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${functionfile}"))