summaryrefslogtreecommitdiffstats
path: root/db-update
diff options
context:
space:
mode:
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update4
1 files changed, 3 insertions, 1 deletions
diff --git a/db-update b/db-update
index 7ff768e..4b2571d 100755
--- a/db-update
+++ b/db-update
@@ -198,7 +198,9 @@ fi
# if non empty, move all build dirs
if [ $(/bin/ls "$WORKDIR/build/" 2>/dev/null | wc -l) != 0 ]; then
echo "Copying new files to '$ftppath'"
- /bin/cp -r "$WORKDIR/build/"* "$ftppath"
+ if ! /bin/cp -r "$WORKDIR/build/"* "$ftppath"; then
+ die "error: failure while copying files to $ftppath"
+ fi
else
echo "Nothing to copy, no work done"