add escape to cd command fixes #87

This commit is contained in:
Clinton Hall 2013-03-20 20:23:19 -07:00
commit c3e6a19467

View file

@ -300,7 +300,7 @@ ConfigDir="${NZBOP_CONFIGFILE%/*}"
tmplog="$ConfigDir/$tmp.log"
echo "[INFO] Post-Process: Post-processing script successfully started" | tee $tmplog
cd "$NZBPP_DIRECTORY"
cd "$NZBPP_DIRECTORY" || (echo "[ERROR] Post-Process: Nothing to post-process: destination directory $NZBPP_DIRECTORY isn't accessible" && do_exit $POSTPROCESS_ERROR)
# Determine the location of configuration file (it must be stored in
# the directory with nzbget.conf).