fix comparison
This commit is contained in:
parent
00c986e483
commit
3ced314799
|
@ -254,7 +254,7 @@ my_char="."
|
||||||
my_count=$(awk -F"${my_char}" '{print NF-1}' <<< "${NODEJS_VER}")
|
my_count=$(awk -F"${my_char}" '{print NF-1}' <<< "${NODEJS_VER}")
|
||||||
# get the latest version if partial
|
# get the latest version if partial
|
||||||
if [ $my_count -ne 2 ]; then
|
if [ $my_count -ne 2 ]; then
|
||||||
if [ "$my_count" -ne "v" ]; then
|
if [ "$my_count" != "v" ]; then
|
||||||
NODEJS_VER="$NODEJS_VER\\."
|
NODEJS_VER="$NODEJS_VER\\."
|
||||||
fi
|
fi
|
||||||
if [ -n "$(type -p curl)" ]; then
|
if [ -n "$(type -p curl)" ]; then
|
||||||
|
|
Loading…
Reference in New Issue