1
0
Fork 0
mirror of https://github.com/sbrl/PolyFeed.git synced 2024-12-24 10:45:02 +00:00

Bugfix: Use xargs to upload deb files one at a time

This commit is contained in:
Starbeamrainbowlabs 2019-08-07 20:29:30 +01:00
parent 72bafca0d6
commit 03b3ad3c52
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

15
build
View file

@ -102,14 +102,23 @@ task_archive() {
task_end $?;
}
task_upload-release() {
task_begin "Uploading release .deb file";
# $1 - The filename to upload
_upload_deb() {
filename="${1}";
sftp -i "${SSH_KEY_PATH}" -P "${deploy_ssh_port}" -o PasswordAuthentication=no "${deploy_ssh_user}@${deploy_ssh_host}" << SFTPCOMMANDS
put ./*.deb ${deploy_root_dir}
put ${filename} ${deploy_root_dir}
bye
SFTPCOMMANDS
}
task_upload-release() {
task_begin "Uploading release .deb file";
find . -maxdepth 1 -type f -name "*.deb" | xargs -n1 -I{} bash -c '_upload_deb "{}"';
task_end $?;
}