change message

This commit is contained in:
Antoine Martin 2024-08-11 21:20:45 -04:00
parent eeda897b9b
commit fa59f4eb1e
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -18,7 +18,7 @@ for apk in $apkgs; do
return=$(curl -s --user $FORGE_REPO_USER:$FORGE_REPO_TOKEN --upload-file $apk $TARGET_REPO/$BASEBRANCH/$branch 2>&1)
echo $return
if [ "$return" == "package file already exists" ]; then
echo "Package already exists, deleting and resending"
echo "Package already exists, refreshing..."
curl -s --user $FORGE_REPO_USER:$FORGE_REPO_TOKEN -X DELETE $TARGET_REPO/$BASEBRANCH/$branch/$arch/$name
curl -s --user $FORGE_REPO_USER:$FORGE_REPO_TOKEN --upload-file $apk $TARGET_REPO/$BASEBRANCH/$branch
fi