offload-build: return failure if no package files were found

This means that the remote command died at some stage earlier than the
printing of created files.

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
This commit is contained in:
Eli Schwartz 2019-12-02 15:51:21 -05:00 committed by Levente Polyak
parent f20435643f
commit 8edad22616
No known key found for this signature in database
GPG Key ID: FC1B547C8D8172C8
1 changed files with 2 additions and 0 deletions

View File

@ -116,4 +116,6 @@ if (( ${#files[@]} )); then
printf '%s\n' '' '-> copying files...'
load_makepkg_config
scp "${files[@]/#/$server:}" "${PKGDEST:-${PWD}}/"
else
exit 1
fi