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.
		
		
		
		
		
			
		
			
				
					
					
						
							15 lines
						
					
					
						
							344 B
						
					
					
				
			
		
		
	
	
							15 lines
						
					
					
						
							344 B
						
					
					
				#!/usr/bin/env bash | 
						|
 | 
						|
DIR="$(command cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | 
						|
 | 
						|
# shellcheck disable=SC1090 | 
						|
\. "$DIR/nvm.sh" --no-use | 
						|
 | 
						|
if [ -n "$NODE_VERSION" ]; then | 
						|
  nvm use "$NODE_VERSION" > /dev/null || exit 127 | 
						|
elif ! nvm use >/dev/null 2>&1; then | 
						|
  echo "No NODE_VERSION provided; no .nvmrc file found" >&2 | 
						|
  exit 127 | 
						|
fi | 
						|
 | 
						|
exec "$@"
 | 
						|
 |