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
# shellcheck shell=sh | |
help () { | |
echo "Usage: ./node_install.sh [version[, distro]]" | |
echo "Pass 'help' as the first argument or '-h' or '--help' in any position to view this menu." | |
echo "The default distro is linux-x64. The default version is the newest release." | |
echo "Examples:" | |
echo $'./node_install\t\t\t\tInstalls the linux-x64 release of the newest version of Node.JS.' | |
echo $'./node_install v18.0.0\t\t\tInstalls the linux-x64 release of Node.JS v18.0.0.' | |
echo $'./node_install v18.0.0 linux-arm64\tInstalls the linux-arm64 release of Node.JS v18.0.0.' |