Skip to content

Instantly share code, notes, and snippets.

@jameswhite
Created August 25, 2016 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jameswhite/cb646424b4d600db5cfa15a28e5fa70d to your computer and use it in GitHub Desktop.
Save jameswhite/cb646424b4d600db5cfa15a28e5fa70d to your computer and use it in GitHub Desktop.
#!/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