fix bracket
All checks were successful
/ deploy (pull_request) Successful in 25s
/ build-x86_64 (pull_request) Successful in 42s
/ lint (pull_request) Successful in 23s

This commit is contained in:
Antoine Martin 2024-08-11 21:15:46 -04:00
parent fd8ea6f127
commit 0ab310c6b5
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

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