This commit is contained in:
AJ ONeal 2018-06-20 02:11:24 +00:00
parent 3ced314799
commit 0171162f20
1 changed files with 1 additions and 1 deletions

View File

@ -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" != "v" ]; then
if [ "$NODEJS_VER" != "v" ]; then
NODEJS_VER="$NODEJS_VER\\."
fi
if [ -n "$(type -p curl)" ]; then