echo"${cyan}${bold}TO AVOID THIS WAIT MIGRATE THE SCRIPT${normal}"
echo"Continuing in 60 seconds (press Ctrl-C to abort) ..."
echo
}
setup(){
script_deprecation_warning
node_deprecation_warning
repo_deprecation_warning
print_status "Installing the NodeSource ${NODENAME} repo..."
if$(uname-m | grep-Eq ^armv6);then
print_status "You appear to be running on ARMv6 hardware. Unfortunately this is not currently supported by the NodeSource Linux distributions. Please use the 'linux-armv6l' binary tarballs available directly from nodejs.org for Node.js 4 and later."
print_status "Your distribution, identified as \"$(lsb_release -d-s)\", is a pre-release version of Ubuntu. NodeSource does not maintain official support for Ubuntu versions until they are formally released. You can try using the manual installation instructions available at https://github.com/nodesource/distributions and use the latest supported Ubuntu version name as the distribution identifier, although this is not guaranteed to work."
exit 1
fi
DISTRO=$(lsb_release -c-s)
check_alt(){
if["X${DISTRO}"=="X${2}"];then
echo
echo"## You seem to be using ${1} version ${DISTRO}."
echo"## This maps to ${3}\"${4}\"... Adjusting for you..."
print_status "Your distribution, identified as \"${DISTRO}\", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support"