Просмотр исходного кода

now checks and replaces linuxgsm.sh in tmpdir

Daniel Gibbs 9 лет назад
Родитель
Сommit
87927d82eb
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      lgsm/functions/command_update_functions.sh

+ 2 - 2
lgsm/functions/command_update_functions.sh

@@ -28,11 +28,11 @@ fi
 
 echo -ne "    checking linuxgsm.sh...\c"
 config_script_diff=$(diff "${tmpdir}/linuxgsm.sh" <(${curlpath} -s "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/linuxgsm.sh"))
-if [ "${config_file_diff}" != "" ]; then
+if [ "${config_script_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"
+	fn_fetch_file_github "" "linuxgsm.sh" "${tmpdir}" "nochmodx" "norun" "noforcedl" "nomd5"
 else
 	fn_print_ok_eol_nl
 fi