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.
 
 
 
 

20 lines
389 B

#!/bin/bash
set -e
eval `fnm env --multi`
fnm install 6 # no new versions would be issued for this unsupported version
fnm install 8.11.3
fnm use 6
if [ "$(node -v)" != "v6.17.1" ]; then
echo "Node version mismatch: $(node -v). Expected: v6.17.1"
exit 1
fi
fnm use 8
if [ "$(node -v)" != "v8.11.3" ]; then
echo "Node version mismatch: $(node -v). Expected: v8.11.3"
exit 1
fi