14 lines
203 B
Plaintext
14 lines
203 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
DIR="$(command cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||
|
|
||
|
source "$DIR/nvm.sh"
|
||
|
|
||
|
if [ ! "$NODE_VERSION" ]; then
|
||
|
echo 'NODE_VERSION not set'
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
nvm use $NODE_VERSION
|
||
|
|
||
|
exec $@
|