diff --git a/.forgejo/bin/deploy.sh b/.forgejo/bin/deploy.sh index a19ade7..643a9a5 100755 --- a/.forgejo/bin/deploy.sh +++ b/.forgejo/bin/deploy.sh @@ -16,7 +16,8 @@ for apk in $apkgs; do 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) - if [ "$return" == "package file already exists"]; then + echo $return + if [ "$return" == "package file already exists" ]; then 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 --upload-file $apk $TARGET_REPO/$BASEBRANCH/$branch