|
|
@ -553,13 +553,13 @@ function web_get() { |
|
|
|
if command -v aria2c > /dev/null; then |
|
|
|
if command -v aria2c > /dev/null; then |
|
|
|
if ! aria2c -x16 --continue=true --summary-interval=0 --download-result=hide --console-log-level=error "${URL}" -o "${DIR}/${FILE}"; then |
|
|
|
if ! aria2c -x16 --continue=true --summary-interval=0 --download-result=hide --console-log-level=error "${URL}" -o "${DIR}/${FILE}"; then |
|
|
|
echo #Necessary as aria2c in suppressed mode does not have new lines |
|
|
|
echo #Necessary as aria2c in suppressed mode does not have new lines |
|
|
|
echo "ERROR! Failed to download ${URL}. Try running 'quickget' again." |
|
|
|
echo "ERROR! Failed to download ${URL} with aria2c. Try running 'quickget' again." |
|
|
|
exit 1 |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
fi |
|
|
|
echo #Necessary as aria2c in suppressed mode does not have new lines |
|
|
|
echo #Necessary as aria2c in suppressed mode does not have new lines |
|
|
|
else |
|
|
|
else |
|
|
|
if ! wget --quiet --continue --show-progress --progress=bar:force:noscroll "${URL}" -O "${DIR}/${FILE}"; then |
|
|
|
if ! wget --quiet --continue --show-progress --progress=bar:force:noscroll "${URL}" -O "${DIR}/${FILE}"; then |
|
|
|
echo "ERROR! Failed to download ${URL}. Try running 'quickget' again." |
|
|
|
echo "ERROR! Failed to download ${URL} with wget. Try running 'quickget' again." |
|
|
|
exit 1 |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|