From 8edad226166eb6f2888b87cf8e0a9952822c887a Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 2 Dec 2019 15:51:21 -0500 Subject: 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 --- 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 -- cgit v1.2.3-70-g09d2