From 13f31377018891b4da7eb0bc7d43ba54cbc76390 Mon Sep 17 00:00:00 2001 From: J H <2364004+Blu-J@users.noreply.github.com> Date: Thu, 29 Jun 2023 16:28:13 -0600 Subject: [PATCH] fix: Make check-version posix compliant (#2331) We found that we couldn't compile this on the mac arm os --- check-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-version.sh b/check-version.sh index d6765419f..72b56a3e8 100755 --- a/check-version.sh +++ b/check-version.sh @@ -1,6 +1,6 @@ #!/bin/bash -FE_VERSION="$(cat frontend/package.json | grep -Po '"version":[ \t\n]*"\K[^"]*')" +FE_VERSION="$(cat frontend/package.json | grep '"version"' | sed 's/[ \t]*"version":[ \t]*"\([^"]*\)",/\1/')" # TODO: Validate other version sources - backend/Cargo.toml, backend/src/version/mod.rs