From f1bec29d62a76b7e2cd327dd5b0c3800c9ac8f4a Mon Sep 17 00:00:00 2001 From: Henric Andersson Date: Tue, 19 Jul 2016 20:50:00 -0700 Subject: [PATCH] -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 --- plexupdate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexupdate.sh b/plexupdate.sh index 5b7f8bf..0d5c3ee 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -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