Bugfix: Upload a specific deb file

This commit is contained in:
Starbeamrainbowlabs 2019-08-07 20:47:24 +01:00
parent 60faba6252
commit 781d92c89f
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 2 additions and 4 deletions

6
build
View File

@ -91,7 +91,7 @@ task_package() {
PolyFeed/bin/polyfeed=/usr/lib \
polyfeed=/usr/bin/polyfeed;
execute rm -r PolyFeed/bin/polyfeed;
execute dpkg -c *.deb; # We don't know it's name :P
execute dpkg -c "$(ls -ct *.deb | head -n1)"; # We don't know it's name :P
task_end $?;
}
@ -117,9 +117,7 @@ SFTPCOMMANDS
task_upload-release() {
task_begin "Uploading release .deb file(s)";
find . -maxdepth 1 -type f -name "*.deb" -print0 | xargs --null -n1 -I{} bash -c '_upload_deb "{}"';
_upload_deb "$(ls -ct *.deb | head -n1)";
task_end $?;
}