From 3ced314799a2c5e69f5dd7140334d061accccfb7 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 20 Jun 2018 02:07:43 +0000 Subject: [PATCH] fix comparison --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index ffdcfe5..bf1c187 100644 --- a/install.sh +++ b/install.sh @@ -254,7 +254,7 @@ my_char="." my_count=$(awk -F"${my_char}" '{print NF-1}' <<< "${NODEJS_VER}") # get the latest version if partial if [ $my_count -ne 2 ]; then - if [ "$my_count" -ne "v" ]; then + if [ "$my_count" != "v" ]; then NODEJS_VER="$NODEJS_VER\\." fi if [ -n "$(type -p curl)" ]; then