fix: Make check-version posix compliant (#2331)

We found that we couldn't compile this on the mac arm os
This commit is contained in:
J H
2023-06-29 16:28:13 -06:00
committed by GitHub
parent d3316ff6ff
commit 13f3137701

View File

@@ -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