|
|
@@ -35,11 +35,10 @@ if [ -n "${functionsdir}" ]; then
|
|
|
cd "${functionsdir}"
|
|
|
for functionfile in *
|
|
|
do
|
|
|
- echo -ne " checking ${functionfile}...\c"
|
|
|
+ echo -ne " checking ${functionfile}..."
|
|
|
function_file_diff=$(diff "${functionsdir}/${functionfile}" <(${curlcmd} -s "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${functionfile}"))
|
|
|
if [ "${function_file_diff}" != "" ]; then
|
|
|
- echo "files are different!!"
|
|
|
- ${curlcmd} -s --fail "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${functionfile}"
|
|
|
+ ${curlcmd} -s --fail -o "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${github_file_url_dir}/${functionfile}"
|
|
|
local exitcode=$?
|
|
|
if [ "${exitcode}" != "0" ]; then
|
|
|
echo -ne " checking ${functionfile}...\c"
|
|
|
@@ -47,7 +46,7 @@ if [ -n "${functionsdir}" ]; then
|
|
|
rm -rfv "${functionsdir}/${functionfile}"
|
|
|
exitcode=2
|
|
|
else
|
|
|
- echo -ne " checking ${functionfile}...UPDATE"
|
|
|
+ echo -ne " checking ${functionfile}...\e[0;33mUPDATE\e[0m"
|
|
|
rm -rfv "${functionsdir}/${functionfile}"
|
|
|
fn_update_function
|
|
|
fi
|