From 7a523ce38d91087a12745d8f4488257b2bea5be2 Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Wed, 20 Mar 2013 20:28:45 -0700 Subject: [PATCH] add escape to cd command fixes #87 --- nzbget-postprocessing-files/9.0/nzbget-postprocess.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nzbget-postprocessing-files/9.0/nzbget-postprocess.sh b/nzbget-postprocessing-files/9.0/nzbget-postprocess.sh index a3f7dff4..a274fec7 100644 --- a/nzbget-postprocessing-files/9.0/nzbget-postprocess.sh +++ b/nzbget-postprocessing-files/9.0/nzbget-postprocess.sh @@ -310,7 +310,7 @@ if [ ! -d "$NZBPP_DIRECTORY" ]; then do_exit $POSTPROCESS_ERROR fi -cd "$NZBPP_DIRECTORY" +cd "$NZBPP_DIRECTORY" || (echo "[ERROR] Post-Process: Nothing to post-process: destination directory $NZBPP_DIRECTORY isn't accessible" | tee $tmplog && do_exit $POSTPROCESS_ERROR) # If not just repaired and file "_brokenlog.txt" exists, the collection is damaged # exiting with exiting code $POSTPROCESS_PARCHECK_ALL to request par-repair