|
|
@ -58,7 +58,7 @@ fn_dl_extract(){ |
|
|
|
mime=$(file -b --mime-type "${filedir}/${filename}") |
|
|
|
|
|
|
|
if [ "${mime}" == "application/gzip" ]||[ "${mime}" == "application/x-gzip" ]; then |
|
|
|
tarcmd=$(tar -zxf "${filedir}/${filename}" -C "${extractdir}" --strip-components=1) |
|
|
|
tarcmd=$(tar -zxf "${filedir}/${filename}" -C "${extractdir}") |
|
|
|
elif [ "${mime}" == "application/x-bzip2" ]; then |
|
|
|
tarcmd=$(tar -jxf "${filedir}/${filename}" -C "${extractdir}") |
|
|
|
elif [ "${mime}" == "application/zip" ]; then |
|
|
|