Swallow "errors" from heredocs

This commit is contained in:
Simon Gellis 2024-12-29 11:50:47 -05:00
parent cebdcfe220
commit 1628a45f7d
1 changed files with 4 additions and 2 deletions

View File

@ -27,7 +27,7 @@ fi
docker build -f build.Dockerfile -t lemur-build .
MSYS_NO_PATHCONV=1 docker run -it --rm -v .:/app -w /app --entrypoint bash lemur-build /app/scripts/do-bundle.sh
read -r -d EOF 'body' <<EOF
(read -r -d EOF 'body' <<EOF
## How to install
The emulator can be found in the "Downloads" section of this release.
@ -48,8 +48,9 @@ If you're not sure which to choose, use [this guide](https://support.apple.com/e
You can either download and run \`lemur-linux\`, or download and install the attached .deb file.
EOF
) || true
read -r -d EOF 'payload' <<EOF
(read -r -d EOF 'payload' <<EOF
{
"body": $(echo "$body" | jq -Rsa .),
"draft": false,
@ -58,6 +59,7 @@ read -r -d EOF 'payload' <<EOF
"tag_name": "v${version}"
}
EOF
) || true
echo "Creating release..."
response=$(curl -s --json "$payload" "https://git.virtual-boy.com/api/v1/repos/PVB/lemur/releases?token=$RELEASE_TOKEN")