Check node version
This commit is contained in:
parent
42a77a5cd5
commit
0e0a85df82
5 changed files with 20 additions and 12 deletions
|
|
@ -6,11 +6,7 @@ set -o pipefail
|
|||
NO_COLOR=1
|
||||
FORCE_COLOR=0
|
||||
|
||||
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
|
||||
./scripts/utils/check-node.sh
|
||||
|
||||
# Check if the argument is provided
|
||||
if [ $# -eq 0 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue