Try suppressing error with !
This commit is contained in:
parent
4242e8dd24
commit
7cf8ac491e
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue