Jelajahi Sumber

Fixed gsquery.py download

Daniel Gibbs 10 tahun lalu
induk
melakukan
664c35413c
2 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 2 2
      functions/core_dl.sh
  2. 1 1
      functions/monitor_gsquery.sh

+ 2 - 2
functions/core_dl.sh

@@ -20,7 +20,7 @@ lgsm_version="050216"
 
 
 fn_dl_md5(){
 fn_dl_md5(){
 # Runs MD5 Check if available
 # Runs MD5 Check if available
-if [ -n "${md5}" ]; then
+if [ -n "${md5}" ]||[ "${md5}" == "nomd5" ]; then
 	echo -ne "verifying ${filename} with MD5..."
 	echo -ne "verifying ${filename} with MD5..."
 	sleep 1
 	sleep 1
 	local md5sumcmd=$(md5sum "${filedir}/${filename}"|awk '{print $1;}')
 	local md5sumcmd=$(md5sum "${filedir}/${filename}"|awk '{print $1;}')
@@ -181,7 +181,7 @@ filename="${github_file_url_name}"
 executecmd="${4:-0}"
 executecmd="${4:-0}"
 run="${5:-0}"
 run="${5:-0}"
 force="${6:-0}"
 force="${6:-0}"
-md5="${7:-0}"
+md5="${7}"
 fn_fetch_file "${fileurl}" "${filedir}" "${filename}" "${executecmd}" "${run}" "${force}" "${md5}"
 fn_fetch_file "${fileurl}" "${filedir}" "${filename}" "${executecmd}" "${run}" "${force}" "${md5}"
 }
 }
 
 

+ 1 - 1
functions/monitor_gsquery.sh

@@ -11,7 +11,7 @@ local modulename="Monitor"
 
 
 # Downloads gsquery.py if missing
 # Downloads gsquery.py if missing
 if [ ! -f "${functionsdir}/gsquery.py" ]; then
 if [ ! -f "${functionsdir}/gsquery.py" ]; then
-	fn_fetch_file_github "functions" "gsquery.py" "${functionsdir}" "executecmd" "norun" "noforce"
+	fn_fetch_file_github "functions" "gsquery.py" "${functionsdir}" "executecmd" "norun" "noforce" "nomd5"
 fi	
 fi	
 
 
 info_config.sh
 info_config.sh