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