|
|
@ -61,9 +61,9 @@ fn_dl_extract(){ |
|
|
|
if [ "${mime}" == "application/gzip" ]||[ "${mime}" == "application/x-gzip" ]; then |
|
|
|
extractcmd=$(tar -zxf "${local_filedir}/${local_filename}" -C "${extractdir}") |
|
|
|
elif [ "${mime}" == "application/x-bzip2" ]; then |
|
|
|
tarcmd=$(tar -jxf "${filedir}/${filename}" -C "${extractdir}") |
|
|
|
tarcmd=$(tar -jxf "${local_filedir}/${local_filename}" -C "${extractdir}") |
|
|
|
elif [ "${mime}" == "application/x-xz" ]; then |
|
|
|
tarcmd=$(tar -xf "${filedir}/${filename}" -C "${extractdir}") |
|
|
|
tarcmd=$(tar -xf "${local_filedir}/${local_filename}" -C "${extractdir}") |
|
|
|
elif [ "${mime}" == "application/zip" ]; then |
|
|
|
extractcmd=$(unzip -d "${extractdir}" "${local_filedir}/${local_filename}") |
|
|
|
fi |
|
|
|