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 `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`
echo $result
if [ -n "$results" ]; then
echo $result
fi
rm -f $pkgs.apk
else
echo "Error: Couldn't download $pkgs"