Try suppressing error with !

This commit is contained in:
Antoine Martin 2024-10-23 08:33:30 -04:00
parent 4242e8dd24
commit 7cf8ac491e
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -33,7 +33,12 @@ jobs:
count=1
while read pkgs; do
echo "[ $count / $total ] Sending $pkgs"
result=$(wget -q $upstream/x86_64/$pkgs.apk || true)
# github actions doesn't do double pipe error suppression
! wget -q $upstream/x86_64/$pkgs.apk
! true
! false
# if it doesn't exist, it is because it failed to download.
if [ -f $pkgs.apk ]; then
result=`curl -s --user ${{ vars.CODE_FORGEJO_USER }}:${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file $pkgs.apk $downstream`
@ -43,7 +48,6 @@ jobs:
rm -f $pkgs.apk
else
echo "Error: Couldn't download $pkgs"
echo $result
fi
count=$(( count + 1 ))
done < missing