File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ die() {
40
40
# Print all alias and correspondent versions in the format "$alias\t$version"
41
41
# Also prints versions as a alias of itself. Eg: "v10.0.0\tv10.0.0"
42
42
filter_version_candidates () {
43
- local curr_line=" " aliases=" "
43
+ local curr_line= aliases= definitions=
44
+
45
+ definitions=$( nodebuild_wrapped --definitions | grep -v 16.14.1)
44
46
45
47
# Skip headers
46
48
IFS= read -r curr_line
@@ -54,6 +56,11 @@ filter_version_candidates() {
54
56
# Lowercase lts codename, `-` if not a lts version
55
57
local lts_codename=$( echo " ${fields[9]} " | tr ' [:upper:]' ' [:lower:]' )
56
58
59
+ # If not available in nodebuild skip it
60
+ if ! grep -q " ^$version $" <<< " $definitions" ; then
61
+ continue
62
+ fi
63
+
57
64
if [ " $lts_codename " != - ]; then
58
65
# No lts read yet, so this must be the more recent
59
66
if ! grep -q " ^lts:" <<< " $aliases" ; then
You can’t perform that action at this time.
0 commit comments