summaryrefslogtreecommitdiffstats
path: root/ftpdir-cleanup
diff options
context:
space:
mode:
Diffstat (limited to 'ftpdir-cleanup')
-rwxr-xr-xftpdir-cleanup4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftpdir-cleanup b/ftpdir-cleanup
index df400bd..98f6f7c 100755
--- a/ftpdir-cleanup
+++ b/ftpdir-cleanup
@@ -53,5 +53,5 @@ echo -ne "DELETEFILES:\n${DELETEFILES}\n\n"
echo -ne "MISSINGFILES:\n${MISSINGFILES}\n\n"
cd ${FTPDIR}
-mv ${DELETEFILES} /home/package-cleanup/
-cd -
+[ -n "${DELETEFILES}" ] && mv ${DELETEFILES} /home/package-cleanup/
+cd - >/dev/null