mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Fix aria2 using wrong destination directory
If you have set a download directory in aria2's config, quickget will download files to the wrong directory. This overwrites that setting and downloads files to the correct location. Quote from `aria2c(1)`: > `-o, --out=<FILE>` > The file name of the downloaded file. It is > always relative to the directory given in > `--dir` option.
This commit is contained in:
parent
8b256bb57d
commit
6a612bd104
1 changed files with 1 additions and 1 deletions
2
quickget
2
quickget
|
@ -741,7 +741,7 @@ function web_get() {
|
|||
fi
|
||||
|
||||
if command -v aria2c &>/dev/null; then
|
||||
if ! aria2c --stderr -x16 --continue=true --summary-interval=0 --download-result=hide --console-log-level=error "${URL}" -o "${DIR}/${FILE}"; then
|
||||
if ! aria2c --stderr -x16 --continue=true --summary-interval=0 --download-result=hide --console-log-level=error "${URL}" --dir "${DIR}" -o "${FILE}"; then
|
||||
echo #Necessary as aria2c in suppressed mode does not have new lines
|
||||
echo "ERROR! Failed to download ${URL} with aria2c. Try running 'quickget' again."
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue