We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e2f478 commit 701ff4fCopy full SHA for 701ff4f
docker/_utils/version.sh
@@ -11,7 +11,7 @@ PRISMA_VERSION=$(pnpm prisma -v)
11
echo "pnpm prisma -v\n${PRISMA_VERSION}\n"
12
13
# extract the binaryTarget from the version command output, e.g., "debian-openssl-1.1.x"
14
-PRISMA_TARGET_PLATFORM=$(echo "${PRISMA_VERSION}" | awk -F'engines/schema-engine-' '{split($2, a, ")"); print a[1]}' | tr -d ' \t\n')
+PRISMA_TARGET_PLATFORM=$(echo "${PRISMA_VERSION}" | grep 'engines/schema-engine-' | sed 's/.*engines\/schema-engine-//; s/).*//')
15
16
if [ $PRISMA_TARGET_PLATFORM = $EXPECTED_PRISMA_TARGET_PLATFORM ]; then
17
echo "Current binaryTarget matches expected binaryTarget \"${PRISMA_TARGET_PLATFORM}\""
0 commit comments