fix http_get_aria to cat the correct file

This commit is contained in:
Tim Felgentreff 2024-05-27 10:50:03 +02:00
parent 2ecec311fe
commit 98c5b711dc

View file

@ -397,7 +397,7 @@ http_get_aria2c() {
fi
if aria2c --allow-overwrite=true --no-conf=true -d "${dir_out}" -o "${out}" ${ARIA2_OPTS} "$1" >&4; then
[ -n "$2" ] || cat "${out}"
[ -n "$2" ] || cat "${dir_out:-.}/${out}"
else
false
fi