From 60faba6252beca549c0dd1002a524d952ba10a31 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 7 Aug 2019 20:40:13 +0100 Subject: [PATCH] Let's see why it's not uploading --- build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build b/build index e3cdd4a..231535b 100755 --- a/build +++ b/build @@ -106,6 +106,7 @@ task_archive() { _upload_deb() { filename="${1}"; + echo "Found ${filename}"; sftp -i "${SSH_KEY_PATH}" -P "${deploy_ssh_port}" -o PasswordAuthentication=no "${deploy_ssh_user}@${deploy_ssh_host}" << SFTPCOMMANDS put ${filename} ${deploy_root_dir} bye @@ -115,10 +116,10 @@ SFTPCOMMANDS } task_upload-release() { - task_begin "Uploading release .deb file"; + task_begin "Uploading release .deb file(s)"; + find . -maxdepth 1 -type f -name "*.deb" -print0 | xargs --null -n1 -I{} bash -c '_upload_deb "{}"'; - find . -maxdepth 1 -type f -name "*.deb" | xargs -n1 -I{} bash -c '_upload_deb "{}"'; task_end $?; }