From 72f71b918c6d60389e8a32ef66d4913181feaf05 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Fri, 14 Dec 2012 16:09:04 -0800 Subject: [PATCH] added adittional Debug --- nzbget-postprocessing-files/0.8.0/postprocess.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nzbget-postprocessing-files/0.8.0/postprocess.sh b/nzbget-postprocessing-files/0.8.0/postprocess.sh index 8e760d52..b084a9ad 100644 --- a/nzbget-postprocessing-files/0.8.0/postprocess.sh +++ b/nzbget-postprocessing-files/0.8.0/postprocess.sh @@ -103,6 +103,7 @@ nzbToMedia() { if [ "$DEBUG" ]; then echo "[DETAIL] Post-Process: Executing external postprocessing with argument $1" ; fi PostProcessStatus=0 if [ -n "$1" ]; then PostProcessStatus=$1 ; fi + if [ "$DEBUG" ]; then echo "[DETAIL] Post-Process: comparing '$NZBPP_CATEGORY' to '$CouchPotatoCategory' and '$SickBeardCategory'" ; fi if ["$NZBPP_CATEGORY" = "$CouchPotatoCategory"]; then if [ "$CouchPotato" = "yes" -a -e "$NzbToCouchPotato" ]; then # Call Couchpotato's postprocessing script @@ -116,7 +117,7 @@ nzbToMedia() { $PythonCmd $NzbToCouchPotato "$NZBPP_DIRECTORY" "$NZBPP_NZBFILENAME" "$PostProcessStatus" | while read line ; do echo "[INFO] Post-Process: $line" ; done else if [ "$CouchPotato" != "yes" ]; then echo "[DETAIL] Post-Process: Ignored to run CouchPotato's postprocessing script as it is disabled by user ('$CouchPotato')"; fi - if [ !-e "$NzbToCouchPotato" ]; then echo "[DETAIL] Post-Process: Ignored to run CouchPotato's postprocessing script as the specified script ('$NzbToCouchPotato') does not exist"; fi + if [ ! -e "$NzbToCouchPotato" ]; then echo "[DETAIL] Post-Process: Ignored to run CouchPotato's postprocessing script as the specified script ('$NzbToCouchPotato') does not exist"; fi fi fi if ["$NZBPP_CATEGORY" = "$SickBeardCategory"]; then @@ -132,7 +133,7 @@ nzbToMedia() { $PythonCmd $NzbToSickBeard "$NZBPP_DIRECTORY" "$NZBPP_NZBFILENAME" "$PostProcessStatus" | while read line ; do echo "[INFO] Post-Process: $line" ; done else if [ "$SickBeard" != "yes" ]; then echo "[DETAIL] Post-Process: Ignored to run SickBeard's postprocessing script as it is disabled by user ('$SickBeard')"; fi - if [ !-e "$NzbToSickBeard" ]; then echo "[DETAIL] Post-Process: Ignored to run SickBeard's postprocessing script as the specified script ('$NzbToSickBeard') does not exist"; fi + if [ ! -e "$NzbToSickBeard" ]; then echo "[DETAIL] Post-Process: Ignored to run SickBeard's postprocessing script as the specified script ('$NzbToSickBeard') does not exist"; fi fi fi }