Some checks failed
- Migrate to forgejo - Bump Rust & Node - Reformat project - Small script cleanup Reviewed-on: https://home.schmelczer.dev/git/git/andras/vault-link/pulls/189 Co-authored-by: Andras Schmelczer <andras@schmelczer.dev> Co-committed-by: Andras Schmelczer <andras@schmelczer.dev>
11 lines
273 B
Bash
Executable file
11 lines
273 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
TARGET_NODE_VERSION=25
|
|
|
|
node_version=$(node -v | sed 's/^v\([0-9]*\).*/\1/')
|
|
if [ "$node_version" != "$TARGET_NODE_VERSION" ]; then
|
|
echo "Error: This script requires Node.js version $TARGET_NODE_VERSION, found: $node_version"
|
|
exit 1
|
|
fi
|