Browse Source

update var names local_filedir local_filename

pull/1477/head
Daniel Gibbs 8 years ago
parent
commit
4c184b973b
  1. 4
      lgsm/functions/core_dl.sh

4
lgsm/functions/core_dl.sh

@ -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

Loading…
Cancel
Save