Skip to content

Commit

Permalink
fix(nargo_check.sh): UNIX standard grep (#2396)
Browse files Browse the repository at this point in the history
Mac does not support the -P flag.
  • Loading branch information
ludamad authored Sep 19, 2023
1 parent 1f1a17f commit 02e788a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarn-project/noir-contracts/scripts/nargo_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
nargo_check() {
echo "Using $(nargo --version)"
EXPECTED_VERSION=$(jq -r '.commit' ../noir-compiler/src/noir-version.json)
FOUND_VERSION=$(nargo --version | grep -oP 'git version hash: \K[0-9a-f]+')
FOUND_VERSION=$(nargo --version | grep -o 'git version hash: [0-9a-f]*' | cut -d' ' -f4)
if [ "$EXPECTED_VERSION" != "$FOUND_VERSION" ]; then
echo "Expected nargo version $EXPECTED_VERSION but found version $FOUND_VERSION. Aborting."
exit 1
Expand Down

0 comments on commit 02e788a

Please sign in to comment.