Explorar o código

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 %!s(int64=9) %!d(string=hai) anos
pai
achega
e4e18f7122
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      lgsm/functions/core_dl.sh

+ 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