summaryrefslogtreecommitdiffstats
path: root/db-update
diff options
context:
space:
mode:
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update6
1 files changed, 5 insertions, 1 deletions
diff --git a/db-update b/db-update
index 5d492fd..451d206 100755
--- a/db-update
+++ b/db-update
@@ -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: