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

Eli Schwartz eschwartz at archlinux.org
Mon Dec 2 20:51:21 UTC 2019


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

Signed-off-by: Eli Schwartz <eschwartz at archlinux.org>
---
 offload-build | 2 ++
 1 file changed, 2 insertions(+)

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
-- 
2.24.0


More information about the arch-projects mailing list