Browse Source

Fixes issue #1842 core_dl not exiting when download fails

pull/1986/head
Daniel Gibbs 7 years ago
parent
commit
4e152b2902
  1. 2
      lgsm/functions/core_dl.sh

2
lgsm/functions/core_dl.sh

@ -116,8 +116,8 @@ fn_fetch_file(){
if [ "${local_filename##*.}" == "bz2" ]||[ "${local_filename##*.}" == "gz" ]||[ "${local_filename##*.}" == "zip" ]||[ "${local_filename##*.}" == "jar" ]; then
echo -ne "downloading ${local_filename}..."
sleep 0.5
curlcmd=$(${curlpath} --progress-bar --fail -L -o "${local_filedir}/${local_filename}" "${remote_fileurl}")
echo -ne "downloading ${local_filename}..."
curlcmd=$(${curlpath} --progress-bar --fail -L -o "${local_filedir}/${local_filename}" "${remote_fileurl}")
else
echo -ne " fetching ${local_filename}...\c"
curlcmd=$(${curlpath} -s --fail -L -o "${local_filedir}/${local_filename}" "${remote_fileurl}" 2>&1)

Loading…
Cancel
Save