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.

22 lines
354 B

#!/bin/bash
DIRECTORY="$(dirname "$0")"
SHELL_TO_RUN="$1"
PROFILE_FILE="$("$DIRECTORY/get_shell_profile.sh" "$SHELL_TO_RUN")"
echo "Profile is $PROFILE_FILE"
$SHELL_TO_RUN -c '
fnm install 12.5.0
fnm ls | grep 12.5.0
echo "fnm ls worked."
'
$SHELL_TO_RUN -c '
fnm use 12.5.0
node --version | grep 12.5.0
echo "node --version worked."
'