From f7b3d604961ef31a8de800140a34b0fc8dc23a7c Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Wed, 12 Dec 2012 18:27:37 -0800 Subject: [PATCH] Don't post process on certain conditions We don't want to snatch next release when the error is an NZBGet config problem, or the download hasn't finished yet. In these conditions, the actual download may be recoverable. --- nzbget-postprocessing-files/9.0/bin/nzbget-postprocess.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nzbget-postprocessing-files/9.0/bin/nzbget-postprocess.sh b/nzbget-postprocessing-files/9.0/bin/nzbget-postprocess.sh index 428d7750..24c34f53 100644 --- a/nzbget-postprocessing-files/9.0/bin/nzbget-postprocess.sh +++ b/nzbget-postprocessing-files/9.0/bin/nzbget-postprocess.sh @@ -173,7 +173,7 @@ if [ ! -f "$ScriptConfigFile" ]; then fi if [ ! -f "$ScriptConfigFile" ]; then echo "[ERROR] Post-Process: Configuration file $ScriptConfigFile not found, exiting" - do_exit $POSTPROCESS_ERROR + exit $POSTPROCESS_ERROR fi # Readg configuration file @@ -199,13 +199,13 @@ fi if [ "$BadConfig" -eq 1 ]; then echo "[ERROR] Post-Process: Exiting because of not compatible nzbget configuration" - do_exit $POSTPROCESS_ERROR + exit $POSTPROCESS_ERROR fi # Check if all collections in nzb-file were downloaded if [ ! "$NZBPP_NZBCOMPLETED" -eq 1 ]; then echo "[INFO] Post-Process: Not the last collection in nzb-file, exiting" - do_exit $POSTPROCESS_SUCCESS + exit $POSTPROCESS_SUCCESS fi # Check par status