mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 05:43:16 -07:00
Don't use custom dir if not passed in conf
This commit is contained in:
parent
5865744a68
commit
7ab69f7789
1 changed files with 4 additions and 3 deletions
|
@ -342,7 +342,8 @@ fi
|
|||
############################
|
||||
|
||||
# Move categories to /share/yourdirectory and remove download destination directory
|
||||
if [ "$NZBPP_CATEGORY" = "$SickBeardCategory" ]; then
|
||||
# Test for category and ensure the passed directory exists as a directory.
|
||||
if [ "$NZBPP_CATEGORY" = "$SickBeardCategory" -a -d "$TvDownloadDir" ]; then
|
||||
echo "[INFO] Post-Process: Moving TV shows to $TvDownloadDir"
|
||||
cp -R "$NZBPP_DIRECTORY" "$TvDownloadDir" >/dev/null 2>&1
|
||||
if [ "$?" -ne 0 ]; then
|
||||
|
@ -355,8 +356,8 @@ if [ "$NZBPP_CATEGORY" = "$SickBeardCategory" ]; then
|
|||
NZBPP_DIRECTORY="$TvDownloadDir"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$NZBPP_CATEGORY" = "$CouchPotatoCategory" ]; then
|
||||
# Test for category and ensure the passed directory exists as a directory.
|
||||
if [ "$NZBPP_CATEGORY" = "$CouchPotatoCategory" -a -d "$MoviesDownloadDir" ]; then
|
||||
echo "[INFO] Post-Process: Moving Movies to $MoviesDownloadDir"
|
||||
cp -R "$NZBPP_DIRECTORY" "$MoviesDownloadDir" >/dev/null 2>&1
|
||||
if [ "$?" -ne 0 ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue