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

Legacy: core functions now download

Daniel Gibbs 9 лет назад
Родитель
Сommit
b8ef5f85a8
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      lgsm/functions/core_functions.sh

+ 6 - 4
lgsm/functions/core_functions.sh

@@ -9,7 +9,11 @@
 
 core_dl.sh(){
 functionfile="${FUNCNAME}"
-fn_bootstrap_fetch_file_github "lgsm/functions" "core_dl.sh" "${functionsdir}" "chmodx" "run" "noforcedl" "nomd5"
+if [ -z $(type fn_bootstrap_fetch_file_github) ];then
+	fn_fetch_core_dl "lgsm/functions" "core_dl.sh" "${functionsdir}" "chmodx" "run" "noforcedl" "nomd5"
+else
+	fn_bootstrap_fetch_file_github "lgsm/functions" "core_dl.sh" "${functionsdir}" "chmodx" "run" "noforcedl" "nomd5"
+fi
 }
 
 core_exit.sh(){
@@ -553,6 +557,4 @@ core_messages.sh
 core_dl.sh
 
 # Calls the global Ctrl-C trap
-core_trap.sh
-
-
+core_trap.sh