From 9d7e5f6442d7c20fcc6bd123bb0b25623ad10a06 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 22 Dec 2015 21:50:41 -0500 Subject: [PATCH] remove bc --- setup-iojs-mavericks.bash | 5 ++--- setup-min.sh | 6 ++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/setup-iojs-mavericks.bash b/setup-iojs-mavericks.bash index f863daa..13388f4 100644 --- a/setup-iojs-mavericks.bash +++ b/setup-iojs-mavericks.bash @@ -4,11 +4,10 @@ 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 diff --git a/setup-min.sh b/setup-min.sh index 60fae7d..9488d8c 100644 --- a/setup-min.sh +++ b/setup-min.sh @@ -168,11 +168,9 @@ fi if [ -n "$NODEJS_VER" ]; then NODEJS_VERT=$(echo ${NODEJS_VER} | cut -c 2- | cut -d '.' -f1) - 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