You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
290 B

#!/bin/bash
set -e
PATH="$(pwd)":$PATH # simulating a custom `node`
eval "$(fnm env --multi)"
fnm install 10
fnm use 10
fnm use system
NVER="$(node -v)"
if [ "$NVER" != "custom build" ]; then
echo "Expected \`node -v\` to be resolved to the system Node.js, but got $NVER"
exit 1
fi