Bladeren bron

corrected type if to dev/null errors

the errors should not appear as it was breaking the if statement
Daniel Gibbs 9 jaren geleden
bovenliggende
commit
4e2e953912
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      lgsm/functions/core_functions.sh

+ 3 - 3
lgsm/functions/core_functions.sh

@@ -9,7 +9,7 @@
 
 core_dl.sh(){
 functionfile="${FUNCNAME}"
-if [ "$(type fn_fetch_core_dl)" ];then
+if [ "$(type fn_fetch_core_dl 2>/dev/null)" ];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"
@@ -18,7 +18,7 @@ fi
 
 core_messages.sh(){
 functionfile="${FUNCNAME}"
-if [ "$(type fn_fetch_core_dl)" ];then
+if [ "$(type fn_fetch_core_dl 2>/dev/null)" ];then
 	fn_fetch_core_dl "lgsm/functions" "core_messages.sh" "${functionsdir}" "chmodx" "run" "noforcedl" "nomd5"
 else
 	fn_bootstrap_fetch_file_github "lgsm/functions" "core_messages.sh" "${functionsdir}" "chmodx" "run" "noforcedl" "nomd5"
@@ -27,7 +27,7 @@ fi
 
 core_legacy.sh(){
 functionfile="${FUNCNAME}"
-if [ "$(type fn_fetch_core_dl)" ];then
+if [ "$(type fn_fetch_core_dl 2>/dev/null)" ];then
 	fn_fetch_core_dl "lgsm/functions" "core_legacy.sh" "${functionsdir}" "chmodx" "run" "noforcedl" "nomd5"
 else
 	fn_bootstrap_fetch_file_github "lgsm/functions" "core_legacy.sh" "${functionsdir}" "chmodx" "run" "noforcedl" "nomd5"