forked from coolaj86/node-installer.sh
		
	removing old crufty io.js references
This commit is contained in:
		
							parent
							
								
									2cfa00cced
								
							
						
					
					
						commit
						4155a7c639
					
				@ -152,7 +152,7 @@ esac
 | 
			
		||||
# Download installers #
 | 
			
		||||
#######################
 | 
			
		||||
 | 
			
		||||
echo "Preparing to install io.js (and common development dependencies) for ${OS}" "${ARCH}"
 | 
			
		||||
echo "Preparing to install node.js (and common development dependencies) for ${OS}" "${ARCH}"
 | 
			
		||||
 | 
			
		||||
INSTALL_FILE="setup-node-${SETUP_FILE}.bash"
 | 
			
		||||
if [ ! -e "/tmp/${INSTALL_FILE}" ]
 | 
			
		||||
@ -176,7 +176,7 @@ then
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
#########################
 | 
			
		||||
# Which io.js VERSION ? #
 | 
			
		||||
# Which node.js VERSION ? #
 | 
			
		||||
#########################
 | 
			
		||||
 | 
			
		||||
if [ -f "/tmp/NODEJS_VER" ]; then
 | 
			
		||||
@ -199,10 +199,10 @@ fi
 | 
			
		||||
if [ -z "$NODEJS_VER" ]; then
 | 
			
		||||
  if [ -n "$(which curl)" ]; then
 | 
			
		||||
    NODEJS_VER=$(curl -fsL "$NODEJS_BASE_URL/dist/index.tab" | head -2 | tail -1 | cut -f 1) \
 | 
			
		||||
      || echo 'error automatically determining current io.js version'
 | 
			
		||||
      || echo 'error automatically determining current node.js version'
 | 
			
		||||
  elif [ -n "$(which wget)" ]; then
 | 
			
		||||
    NODEJS_VER=$(wget --quiet "$NODEJS_BASE_URL/dist/index.tab" -O - | head -2 | tail -1 | cut -f 1) \
 | 
			
		||||
      || echo 'error automatically determining current io.js version'
 | 
			
		||||
      || echo 'error automatically determining current node.js version'
 | 
			
		||||
  else
 | 
			
		||||
    echo "Found neither 'curl' nor 'wget'. Can't Continue."
 | 
			
		||||
    exit 1
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user