From e5d5250753854b6225d82fec1f00beda2b38989a Mon Sep 17 00:00:00 2001 From: Jose Ivan Vargas Date: Thu, 2 Nov 2017 15:46:03 -0600 Subject: [PATCH] Corrected the error of my ways in bash --- scripts/install-node | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-node b/scripts/install-node index c50fc47..ab15cbb 100755 --- a/scripts/install-node +++ b/scripts/install-node @@ -5,7 +5,7 @@ set -xeo pipefail NODE_VERSION=${1:-7.x} YARN_VERSION=${2:-0.27.5-1} -if [ "$NODE_VERSION" = 8.9.0 ]; then NODE_VERSION=8.x; fi +NODE_VERSION=`echo $NODE_VERSION | sed -r -e "s/([0-9]+)\.[0-9]+/\1\.x/g"` # add official debian repos for node and yarn curl -sS -L https://deb.nodesource.com/setup_${NODE_VERSION} | bash -