Browse Source

if missing vars in the main script

Daniel Gibbs 9 năm trước cách đây
mục cha
commit
21d4a2c6f9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lgsm/functions/core_functions.sh

+ 1 - 1
lgsm/functions/core_functions.sh

@@ -26,7 +26,7 @@ fn_fetch_function
 }
 }
 
 
 # fn_fetch_core_dl also placed here to allow legacy servers to still download core functions
 # fn_fetch_core_dl also placed here to allow legacy servers to still download core functions
-if [ -z "${lgsmdir}" ]; then
+if [ -z "${lgsmdir}" ]||[ -z "${functionsdir}" ]||[ -z "${libdir}" ]; then
 	lgsmdir="${rootdir}/lgsm"
 	lgsmdir="${rootdir}/lgsm"
 	functionsdir="${lgsmdir}/functions"
 	functionsdir="${lgsmdir}/functions"
 	libdir="${lgsmdir}/lib"
 	libdir="${lgsmdir}/lib"