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

Message ID 20191202205121.70888-1-eschwartz@archlinux.org
State Accepted, archived
Headers show
Series [devtools] offload-build: return failure if no package files were found | expand

Commit Message

Emil Velikov via arch-projects Dec. 2, 2019, 8:51 p.m. UTC
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>
---
 offload-build | 2 ++
 1 file changed, 2 insertions(+)

Patch

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