Skip to content
Permalink
Browse files

fix(core-dl): adjust unzip options and revert curl changes

  • Loading branch information
dgibbs64 committed Dec 2, 2019
1 parent 0b9fbfc commit 5808a3d99daf865e7e0b88bdc3db99bf2be62326
Showing with 3 additions and 3 deletions.
  1. +3 −3 lgsm/functions/core_dl.sh
@@ -81,7 +81,7 @@ fn_dl_extract(){
elif [ "${mime}" == "application/x-xz" ]; then
tarcmd=$(tar -xf "${local_filedir}/${local_filename}" -C "${extractdir}")
elif [ "${mime}" == "application/zip" ]; then
extractcmd=$(unzip -dq "${extractdir}" "${local_filedir}/${local_filename}")
extractcmd=$(unzip -qo -d "${extractdir}" "${local_filedir}/${local_filename}")
fi
local exitcode=$?
if [ ${exitcode} -ne 0 ]; then
@@ -133,11 +133,11 @@ fn_fetch_file(){
echo -en "downloading ${local_filename}..."
fn_sleep_time
echo -en "\033[1K"
curlcmd=$(curl --progress-bar --retry 10 --retry-delay 3 --fail -L -C - -o "${local_filedir}/${local_filename}" "${remote_fileurl}")
curlcmd=$(curl --progress-bar --fail -L -o "${local_filedir}/${local_filename}" "${remote_fileurl}")
echo -en "downloading ${local_filename}..."
else
echo -en " fetching ${local_filename}...\c"
curlcmd=$(curl -s --retry 3 --retry-delay 3 --fail -L -C - -o "${local_filedir}/${local_filename}" "${remote_fileurl}" 2>&1)
curlcmd=$(curl -s --fail -L -o "${local_filedir}/${local_filename}" "${remote_fileurl}" 2>&1)
fi
local exitcode=$?
if [ ${exitcode} -ne 0 ]; then

0 comments on commit 5808a3d

Please sign in to comment.
You can’t perform that action at this time.