Replace read calls with cat so it stops erroring

This commit is contained in:
Simon Gellis 2024-12-29 13:04:50 -05:00
parent d109c71c15
commit 1a54c2e6fc
1 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ fi
docker build -f build.Dockerfile -t lemur-build . 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 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 body=$(cat <<EOF
## How to install ## How to install
The emulator can be found in the "Downloads" section of this release. The emulator can be found in the "Downloads" section of this release.
@ -48,9 +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. You can either download and run \`lemur-linux\`, or download and install the attached .deb file.
EOF EOF
) || true )
(read -r -d EOF 'payload' <<EOF payload=$(cat <<EOF
{ {
"body": $(echo "$body" | jq -Rsa .), "body": $(echo "$body" | jq -Rsa .),
"draft": false, "draft": false,
@ -59,7 +59,7 @@ EOF
"tag_name": "v${version}" "tag_name": "v${version}"
} }
EOF EOF
) || true )
echo "Creating release..." echo "Creating release..."
response=$(curl -s --json "$payload" "https://git.virtual-boy.com/api/v1/repos/PVB/lemur/releases?token=$RELEASE_TOKEN") response=$(curl -s --json "$payload" "https://git.virtual-boy.com/api/v1/repos/PVB/lemur/releases?token=$RELEASE_TOKEN")