Преглед изворни кода

if missing vars in the main script

Daniel Gibbs пре 9 година
родитељ
комит
21d4a2c6f9
1 измењених фајлова са 1 додато и 1 уклоњено
  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
-if [ -z "${lgsmdir}" ]; then
+if [ -z "${lgsmdir}" ]||[ -z "${functionsdir}" ]||[ -z "${libdir}" ]; then
 	lgsmdir="${rootdir}/lgsm"
 	functionsdir="${lgsmdir}/functions"
 	libdir="${lgsmdir}/lib"