소스 검색

corrected type if to dev/null errors

the errors should not appear as it was breaking the if statement
Daniel Gibbs 9 년 전
부모
커밋
4e2e953912
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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"