mirror of
https://github.com/sbrl/PolyFeed.git
synced 2024-11-16 05:33:00 +00:00
Bugfix: Use xargs to upload deb files one at a time
This commit is contained in:
parent
72bafca0d6
commit
03b3ad3c52
1 changed files with 12 additions and 3 deletions
15
build
15
build
|
@ -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 $?;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue