Minor fix.

This commit is contained in:
Timothy Allen 2017-09-05 13:15:29 +02:00
parent b1b5b8aebf
commit 1254c8842f

View File

@ -84,7 +84,7 @@ function download_show {
# Wait 10 minutes before trying again
#sleep 600
if [ -d "${DOWNLOAD_DIR}/${show}" ]; then
if [ -d "${TMP_DIR}/${show}/" ] && [ -n "$( ls -A "${TMP_DIR}/${show}/" )" ]; then
mkdir -p "${DOWNLOAD_DIR}/${show}"
cp -nr "${TMP_DIR}/${show}"/* "${DOWNLOAD_DIR}/${show}"/
cp "${TMP_DIR}/${show}.archive" "${DOWNLOAD_DIR}/${show}.archive"