├── README.md ├── setup-min.sh └── setup.bash /README.md: -------------------------------------------------------------------------------- 1 | # Moved 2 | 3 | ### [iojs-install-script](https://git.coolaj86.com/coolaj86/node-installer.sh) is now at [git.coolaj86.com/coolaj86/node-installer.sh](https://git.coolaj86.com/coolaj86/node-installer.sh) 4 | -------------------------------------------------------------------------------- /setup-min.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | TMP_FILE='/tmp/node-installer-new.sh' 4 | 5 | set -e 6 | rm -rf /tmp/node-installer-new.sh 7 | 8 | echo "Downloading and running the new installer script from https://git.coolaj86.com/coolaj86/node-installer.sh/raw/master/install.sh" 9 | 10 | SETUP_URL='https://git.coolaj86.com/coolaj86/node-installer.sh/raw/master/install.sh' 11 | 12 | 13 | if [ -n "$(which curl)" ]; then 14 | curl --silent "$SETUP_URL" \ 15 | -o "$TMP_FILE" || echo 'error downloading newer deps script:' "$SETUP_URL" 16 | 17 | elif [ -n "$(which wget)" ]; then 18 | wget --quiet "$SETUP_URL" \ 19 | -O "$TMP_FILE" || echo 'error downloading newer deps script:' "$SETUP_URL" 20 | fi 21 | 22 | set +e 23 | 24 | bash $TMP_FILE 25 | -------------------------------------------------------------------------------- /setup.bash: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | TMP_FILE='/tmp/node-installer-new.sh' 4 | 5 | set -e 6 | rm -rf /tmp/node-installer-new.sh 7 | 8 | echo "Downloading and running the new installer script from https://git.coolaj86.com/coolaj86/node-installer.sh/raw/master/install.sh" 9 | 10 | SETUP_URL='https://git.coolaj86.com/coolaj86/node-installer.sh/raw/master/install.sh' 11 | 12 | 13 | if [ -n "$(which curl)" ]; then 14 | curl --silent "$SETUP_URL" \ 15 | -o "$TMP_FILE" || echo 'error downloading newer deps script:' "$SETUP_URL" 16 | 17 | elif [ -n "$(which wget)" ]; then 18 | wget --quiet "$SETUP_URL" \ 19 | -O "$TMP_FILE" || echo 'error downloading newer deps script:' "$SETUP_URL" 20 | fi 21 | 22 | set +e 23 | 24 | bash $TMP_FILE 25 | --------------------------------------------------------------------------------