diff options
author | Thomas Bächler <thomas@archlinux.org> | 2008-04-08 20:32:13 +0200 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2008-04-08 20:32:13 +0200 |
commit | e685ac2accb50e575492372c3f73e500039a7a6b (patch) | |
tree | 7d2668928f0c00baaccef3465b5ebcf47d719d3b | |
parent | 662fb163936fbe55b67159496ab86c5b34ff6351 (diff) | |
download | dbscripts-e685ac2accb50e575492372c3f73e500039a7a6b.tar.gz dbscripts-e685ac2accb50e575492372c3f73e500039a7a6b.tar.xz |
Small fix for ftpdir-cleanup
-rwxr-xr-x | ftpdir-cleanup | 4 |
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 |