tee output

This commit is contained in:
Clinton Hall 2013-03-20 20:26:11 -07:00
commit 6d21257a9b

View file

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