forked from coolaj86/node-installer.sh
remove bc
This commit is contained in:
parent
d9f6f974ae
commit
9d7e5f6442
|
@ -4,11 +4,10 @@ NODEJS_VERT=$(echo ${NODEJS_VER} | cut -c 2- | cut -d '.' -f1)
|
||||||
NODEJS_NAME="node"
|
NODEJS_NAME="node"
|
||||||
NODEJS_BASE_URL="https://nodejs.org"
|
NODEJS_BASE_URL="https://nodejs.org"
|
||||||
|
|
||||||
GE1=$(echo "$NODEJS_VERT>=1" | bc)
|
|
||||||
LT4=$(echo "$NODEJS_VERT<4" | bc)
|
|
||||||
|
|
||||||
if [ "1" -eq $GE1 ] && [ "1" -eq $LT4 ]
|
if [ $NODEJS_VERT -ge 1 ] && [ $NODEJS_VERT -lt 4 ]
|
||||||
then
|
then
|
||||||
|
echo "Selecting io.js instead of node.js for this version (>= 1.0.0 < 4.0.0)"
|
||||||
NODEJS_BASE_URL="https://iojs.org"
|
NODEJS_BASE_URL="https://iojs.org"
|
||||||
NODEJS_NAME="iojs"
|
NODEJS_NAME="iojs"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -168,11 +168,9 @@ fi
|
||||||
if [ -n "$NODEJS_VER" ]; then
|
if [ -n "$NODEJS_VER" ]; then
|
||||||
NODEJS_VERT=$(echo ${NODEJS_VER} | cut -c 2- | cut -d '.' -f1)
|
NODEJS_VERT=$(echo ${NODEJS_VER} | cut -c 2- | cut -d '.' -f1)
|
||||||
|
|
||||||
GE1=$(echo "$NODEJS_VERT>=1" | bc)
|
if [ $NODEJS_VERT -ge 1 ] && [ $NODEJS_VERT -lt 4 ]
|
||||||
LT4=$(echo "$NODEJS_VERT<4" | bc)
|
|
||||||
|
|
||||||
if [ "1" -eq $GE1 ] && [ "1" -eq $LT4 ]
|
|
||||||
then
|
then
|
||||||
|
echo "Selecting io.js instead of node.js for this version (>= 1.0.0 < 4.0.0)"
|
||||||
NODEJS_BASE_URL="https://iojs.org"
|
NODEJS_BASE_URL="https://iojs.org"
|
||||||
NODEJS_NAME="iojs"
|
NODEJS_NAME="iojs"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue