-r now works with -q

-q would supress all output, even the desired one. This solves the
problem for -r which ALWAYS should print the URL, regardless of -q
This commit is contained in:
Henric Andersson 2016-07-19 20:50:00 -07:00
commit f1bec29d62

View file

@ -197,7 +197,7 @@ fi
# send all stdout to /dev/null
if [ "${QUIET}" = "yes" ] || [ "${SILENT}" = "yes" ]; then
exec 1> /dev/null
exec 5>&1 >/dev/null
fi
# send all stdout and stderr to /dev/null
@ -430,7 +430,7 @@ if [ $? -ne 0 ]; then
fi
if [ "${PRINT_URL}" == "yes" ]; then
echo "${DOWNLOAD}"
echo "${DOWNLOAD}" >&5
cronexit 0
fi