Created
August 25, 2016 21:31
-
-
Save jameswhite/cb646424b4d600db5cfa15a28e5fa70d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Bomb out if we hit an error, ever | |
set -e | |
# Verbose output in debug mode | |
[ -n "" ] && { | |
set -x | |
} | |
program="${0##*/}" | |
if [ "$program" = "node" ]; then | |
for arg; do | |
case "$arg" in | |
-e* | -- ) break ;; | |
*/* ) | |
if [ -f "$arg" ]; then | |
export NODENV_DIR="${arg%/*}" | |
break | |
fi | |
;; | |
esac | |
done | |
fi | |
export NODENV_ROOT="/opt/boxen/nodenv" | |
exec "/opt/boxen/nodenv/libexec/nodenv" exec "$program" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment