From 281ed60abff377e3de40b46ed50f28b8caa930a8 Mon Sep 17 00:00:00 2001 From: Yannick Mauray Date: Thu, 24 Feb 2022 23:18:31 +0100 Subject: [PATCH] Send progress to stderr By default, progress is sent to stdout, which is buffered and cannot be proerly processed by `quickgui` --- quickget | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickget b/quickget index 43e715e..a31ea60 100755 --- a/quickget +++ b/quickget @@ -545,7 +545,7 @@ function web_get() { fi 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 --stderr -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 "ERROR! Failed to download ${URL} with aria2c. Try running 'quickget' again." exit 1