From 781d92c89f82dcdba258262745ed1903bfffb124 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 7 Aug 2019 20:47:24 +0100 Subject: [PATCH] Bugfix: Upload a specific deb file --- build | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build b/build index 231535b..5e2cbf3 100755 --- a/build +++ b/build @@ -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 $?; }