summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2008-04-08 20:32:13 +0200
committerThomas Bächler <thomas@archlinux.org>2008-04-08 20:32:13 +0200
commite685ac2accb50e575492372c3f73e500039a7a6b (patch)
tree7d2668928f0c00baaccef3465b5ebcf47d719d3b
parent662fb163936fbe55b67159496ab86c5b34ff6351 (diff)
downloaddbscripts-e685ac2accb50e575492372c3f73e500039a7a6b.tar.gz
dbscripts-e685ac2accb50e575492372c3f73e500039a7a6b.tar.xz
Small fix for 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