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 .
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
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.
EOF
) || true
)
(read -r -d EOF 'payload' <<EOF
payload=$(cat <<EOF
{
"body": $(echo "$body" | jq -Rsa .),
"draft": false,
@ -59,7 +59,7 @@ 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")