diff options
-rwxr-xr-x | db-update | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -186,7 +186,6 @@ if [ -n "$REMPKGS" ]; then for rem in $to_rem; do if [ -f "$ftppath/$rem" ]; then /bin/rm "$ftppath/$rem" - /bin/rm "$rem" fi done else @@ -200,9 +199,14 @@ fi if [ $(/bin/ls "$WORKDIR/build/" 2>/dev/null | wc -l) != 0 ]; then echo "Copying new files to '$ftppath'" /bin/cp -r "$WORKDIR/build/"* "$ftppath" + echo "Cleaning staging dir" + echo "/bin/rm $to_add $to_rem" + /bin/rm $to_add $to_rem else echo "Nothing to copy, no work done" fi + + cleanup # vim: set ts=4 sw=4 noet ft=sh: |