File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,13 @@ shopt -s nocasematch
4444
4545while IFS=$' \t ' read -r -a row; do
4646 node_index_version=" ${row[0]} "
47+ echo $node_index_version >> " versions.txt"
4748 node_index_major_version=$( echo $node_index_version | sed -E ' s/^v([0-9]+).*$/\1/' )
4849 node_index_date=" ${row[1]} "
4950 [[ " $node_index_version " = " version" ]] && continue # skip tsv header
5051 [[ " $NODE_LTS_VERSION " = " latest" ]] && break # first line is latest
51- [[ " $NODE_LTS_VERSION " = " $node_index_version " ]] && break # match full version if specified
52+ [[ " $NODE_LTS_VERSION " = " $node_index_version " ]] && break # match full version if specified (v<major>.<minor>.<patch>)
53+ [[ " v$NODE_LTS_VERSION " = " $node_index_version " ]] && break # match full version if specified (without leading `v`)
5254 [[ " $NODE_LTS_VERSION " = " $node_index_major_version " ]] && break # case insensitive compare
5355done < node_index.tab
5456
You can’t perform that action at this time.
0 commit comments