Skip to content

Commit 5749139

Browse files
authored
feat: node version check in yarn-project/bootstrap.sh (AztecProtocol#3780)
1 parent 4f5cc9d commit 5749139

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

yarn-project/bootstrap.sh

+11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
#!/usr/bin/env bash
22
set -eu
33

4+
# Check node version.
5+
node_version=$(node -v | tr -d 'v')
6+
major=${node_version%%.*}
7+
rest=${node_version#*.}
8+
minor=${rest%%.*}
9+
10+
if (( major < 18 || ( major == 18 && minor < 19 ) )); then
11+
echo "Node.js version is less than 18.19. Exiting."
12+
exit 1
13+
fi
14+
415
cd "$(dirname "$0")"
516

617
CMD=${1:-}

0 commit comments

Comments
 (0)