From 650fb2e2dfa6264a2751bdaa12f2c7cb60244837 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 2 Apr 2017 14:15:45 +0100 Subject: [PATCH] v prefix --- src/freedombone-utils-nodejs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-utils-nodejs b/src/freedombone-utils-nodejs index 57fb628b..998950be 100755 --- a/src/freedombone-utils-nodejs +++ b/src/freedombone-utils-nodejs @@ -118,7 +118,7 @@ function upgrade_nodejs { if [[ "$CURR_N_VERSION" != "$NODEJS_N_VERSION" ]]; then npm upgrade -g n@${NODEJS_N_VERSION} --save fi - if [[ "$CURR_NODE_VERSION" != "$NODEJS_VERSION" ]]; then + if [[ "$CURR_NODE_VERSION" != "v${NODEJS_VERSION}" ]]; then n {NODEJS_VERSION} fi cp /usr/local/bin/n /usr/bin/n @@ -198,7 +198,7 @@ EOF echo $"Expected n version $NODEJS_N_VERSION but actually have $CURR_N_VERSION" exit 5267452 fi - if [[ "$CURR_NODE_VERSION" != "$NODEJS_VERSION" ]]; then + if [[ "$CURR_NODE_VERSION" != "v${NODEJS_VERSION}" ]]; then echo $"Expected node version $NODEJS_VERSION but actually have $CURR_NODE_VERSION" exit 5274527 fi