No new line on empty results

This commit is contained in:
Antoine Martin 2024-10-21 10:41:35 -04:00
parent 038eef95ab
commit 98a4d64ebf
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -36,7 +36,9 @@ jobs:
# if fails continues to next # if fails continues to next
if `wget -q $upstream/x86_64/$pkgs.apk`; then if `wget -q $upstream/x86_64/$pkgs.apk`; then
result=`curl -s --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file $pkgs.apk $downstream` result=`curl -s --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file $pkgs.apk $downstream`
if [ -n "$results" ]; then
echo $result echo $result
fi
rm -f $pkgs.apk rm -f $pkgs.apk
else else
echo "Error: Couldn't download $pkgs" echo "Error: Couldn't download $pkgs"