4
0
Эх сурвалжийг харах

Added support for mimetype application/x-xz

Factorio now uses the mimetype application/x-xz for compressed experimental builds. Added the tar extraction command for this.
Digital-Storm 9 жил өмнө
parent
commit
e4e18f7122

+ 2 - 0
lgsm/functions/core_dl.sh

@@ -60,6 +60,8 @@ fn_dl_extract(){
 		tarcmd=$(tar -zxf "${filedir}/${filename}" -C "${extractdir}")
 	elif [ "${mime}" == "application/x-bzip2" ]; then
 		tarcmd=$(tar -jxf "${filedir}/${filename}" -C "${extractdir}")
+	elif [ "${mime}" == "application/x-xz" ]; then
+		tarcmd=$(tar -xf "${filedir}/${filename}" -C "${extractdir}")
 	elif [ "${mime}" == "application/zip" ]; then
 		tarcmd=$(unzip -d "${extractdir}" "${filedir}/${filename}")
 	fi