Check node version
This commit is contained in:
parent
42a77a5cd5
commit
0e0a85df82
5 changed files with 20 additions and 12 deletions
9
scripts/utils/check-node.sh
Executable file
9
scripts/utils/check-node.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
node_version=$(node -v | sed 's/^v\([0-9]*\).*/\1/')
|
||||
if [ "$node_version" != "22" ]; then
|
||||
echo "Error: This script requires Node.js version 22, found: $node_version"
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue