From d9f6f974ae5b196e7a5a19cdf4fa3b14d5c5bedf Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 22 Dec 2015 21:47:52 -0500 Subject: [PATCH] remove bc --- setup-iojs-ubuntu.bash | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/setup-iojs-ubuntu.bash b/setup-iojs-ubuntu.bash index 8cec72b..cd96ffd 100644 --- a/setup-iojs-ubuntu.bash +++ b/setup-iojs-ubuntu.bash @@ -4,11 +4,9 @@ NODEJS_VERT=$(echo ${NODEJS_VER} | cut -c 2- | cut -d '.' -f1) NODEJS_NAME="node" 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 + echo "Selecting io.js instead of node.js for this version (>= 1.0.0 < 4.0.0)" NODEJS_BASE_URL="https://iojs.org" NODEJS_NAME="iojs" fi