Skip to content

Commit 841c194

Browse files
authored
fix: update hyperdrive grep (#5952)
The output text has changed so grep needs to be updated Fixes [driver-adapters-wasm (pg-cf-hyperdrive, wasm, ubuntu-22.04)](https://github.com/prisma/ecosystem-tests/actions/runs/13991192039/job/39175552676#logs)
1 parent 995adf0 commit 841c194

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver-adapters-wasm/pg-cf-hyperdrive/prepare.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fi
4444
# ✅ Created new Hyperdrive config: 9b94003290f9432c9c59681505b62395
4545
# 📋 To start using your config from a Worker, add the following binding configuration to your Wrangler configuration file:
4646
# ```
47-
# WARN: The ouput seems pretty inconistent. Sometimes you get soem JSON afterwards, soemtimes some YAML. Safest seem to be to grep for the id.
47+
# WARN: The ouput seems pretty inconistent. Sometimes you get some JSON afterwards, soemtimes some YAML. Safest seem to be to grep for the id.
4848

4949
# if DATABASE_URL is not set, exit
5050
if [ -z "$DATABASE_URL" ]; then
@@ -53,7 +53,7 @@ if [ -z "$DATABASE_URL" ]; then
5353
fi
5454

5555
npx wrangler hyperdrive create $HYPERDRIVE_NAME --connection-string=\"$DATABASE_URL\" | tee $TMP_FILE
56-
export HYPERDRIVE_ID=$(cat $TMP_FILE | grep -oE 'Hyperdrive config: [a-zA-Z0-9]+' | awk '{print $3}')
56+
export HYPERDRIVE_ID=$(cat $TMP_FILE | grep -oE 'Hyperdrive PostgreSQL config: [a-zA-Z0-9]+' | awk '{print $4}')
5757

5858
cat <<EOF > wrangler.toml
5959
name = "pg-cf-hyperdrive"

0 commit comments

Comments
 (0)