mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 22:03:13 -07:00
failed dl cleanup close #86
This commit is contained in:
parent
3f308e21ee
commit
88df255b35
1 changed files with 15 additions and 1 deletions
|
@ -203,7 +203,21 @@ replaceVarBy() {
|
|||
do_exit() {
|
||||
if [ "$Debug" = "yes" ]; then echo "[DETAIL] Post-Process: Executing function 'do_exit' with argument $1" ; fi
|
||||
nzbStatus=0
|
||||
if [ "$1" -ne "$POSTPROCESS_SUCCESS" ]; then nzbStatus=1 ; fi
|
||||
if [ "$1" -ne "$POSTPROCESS_SUCCESS" ]; then
|
||||
if [ "$DELETE_FAILED" = "yes" ]; then
|
||||
rm * >/dev/null 2>&1
|
||||
cd ..
|
||||
rmdir $NZBPP_DIRECTORY
|
||||
else
|
||||
mkdir $FAILED_DIRECTORY
|
||||
mv * $FAILED_DIRECTORY >/dev/null 2>&1
|
||||
cd ..
|
||||
rmdir $NZBPP_DIRECTORY
|
||||
NZBPP_DIRECTORY=$FAILED_DIRECTORY
|
||||
cd $NZBPP_DIRECTORY
|
||||
fi
|
||||
nzbStatus=1
|
||||
fi
|
||||
script=none
|
||||
nzbToMedia $nzbStatus
|
||||
echo "[DETAIL] after calling nzbToMedia"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue