Created
September 24, 2018 17:36
-
-
Save yinyin/225acea268d3c2a15618b4f43f8b9755 to your computer and use it in GitHub Desktop.
Wrapper script for running node.js from customized folder
This file contains hidden or 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
#!/bin/bash | |
NODEBASEPATH=/PATH/TO/NODEJS/INSTALLATION | |
SUBJECTCMD=`basename "${0}"` | |
export PATH=${NODEBASEPATH}/bin:$PATH | |
exec ${SUBJECTCMD} "${@}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment