Browse Source

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.
pull/1422/head
Digital-Storm 8 years ago
committed by GitHub
parent
commit
e4e18f7122
  1. 2
      lgsm/functions/core_dl.sh

2
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

Loading…
Cancel
Save