Răsfoiți Sursa

Testing main script file check

Daniel Gibbs 9 ani în urmă
părinte
comite
add483114f
1 a modificat fișierele cu 11 adăugiri și 0 ștergeri
  1. 11 0
      lgsm/functions/command_update_functions.sh

+ 11 - 0
lgsm/functions/command_update_functions.sh

@@ -26,6 +26,17 @@ else
 	fn_print_ok_eol_nl
 	fn_print_ok_eol_nl
 fi
 fi
 
 
+echo -ne "    checking ${selfname}...\c"
+config_script_diff=$(diff "${tmpdir}/linuxgsm.sh" <(${curlpath} -s "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/linuxgsm.sh"))
+if [ "${config_file_diff}" != "" ]; then
+	fn_print_update_eol_nl
+	fn_script_log_info "checking ${selfname}: UPDATE"
+	rm -f "${tmpdir}/linuxgsm.sh"
+	fn_fetch_file_github "" "linuxgsm.sh" "${tmpdir}" "linuxgsm.sh" "noexecutecmd" "norun" "noforce" "nomd5"
+else
+	fn_print_ok_eol_nl
+fi
+
 # Check and update functions
 # Check and update functions
 if [ -n "${functionsdir}" ]; then
 if [ -n "${functionsdir}" ]; then
 	if [ -d "${functionsdir}" ]; then
 	if [ -d "${functionsdir}" ]; then