File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ main() {
1818 # )
1919 response=$( curl -sLN https://nodejs.org/en/feed/releases.xml)
2020 if [[ -n " ${response} " ]] ; then
21- result=$( echo " ${response} " | grep ' \(Current\)' | sort -rV | grep -Po -m1 ' [0-9.]+' )
21+ # DEVV
22+ # result=$(echo "${response}" | grep '\(Current\)' | sort -rV | grep -Po -m1 '[0-9.]+')
23+ result=$( echo " ${response} " | grep ' \(Current\)' | sort -rV | grep -Po -m1 ' [0-9][0-9.]+' )
2224 fi
2325 ;;
2426
@@ -32,8 +34,14 @@ main() {
3234 # )
3335 response=$( curl -sLN https://nodejs.org/en/feed/releases.xml)
3436 if [[ -n " ${response} " ]] ; then
35- result=$( echo " ${response} " | grep ' \(LTS\)' | sort -rV | grep -Po -m1 ' [0-9.]+' )
37+ # DEVV
38+ # result=$(echo "${response}" | grep '\(LTS\)' | sort -rV | grep -Po -m1 '[0-9.]+')
39+ result=$( echo " ${response} " | grep ' \(LTS\)' | sort -rV | grep -Po -m1 ' [0-9][0-9.]+' )
3640 fi
41+ # NUKE
42+ # echo $result
43+ # echo $response
44+ # exit
3745 ;;
3846
3947 nvm )
You can’t perform that action at this time.
0 commit comments