Browse Source

github_file_url_dir was being changed if _default.cfg was downloaded

pull/1477/head
Daniel Gibbs 8 years ago
parent
commit
15be75d42d
  1. 1
      lgsm/functions/command_update_linuxgsm.sh

1
lgsm/functions/command_update_linuxgsm.sh

@ -77,6 +77,7 @@ if [ -n "${functionsdir}" ]; then
for functionfile in * for functionfile in *
do do
echo -ne " checking function ${functionfile}...\c" 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}") get_function_file=$(${curlpath} --fail -s "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${functionfile}")
exitcode=$? exitcode=$?
function_file_diff=$(diff "${functionsdir}/${functionfile}" <(${curlpath} --fail -s "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${functionfile}")) function_file_diff=$(diff "${functionsdir}/${functionfile}" <(${curlpath} --fail -s "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${functionfile}"))

Loading…
Cancel
Save