Yes, looks like a bug. Should be 16
as the else
defaults to 18
e.g...
if [[ "$NODE_VERSION" == "12" ]]; then
tgtl=$tgtl12
tgta=$tgta12
elif [[ "$NODE_VERSION" == "14" ]]; then
tgtl=$tgtl14
tgta=$tgta14
elif [[ "$NODE_VERSION" == "18" ]]; then
tgtl=$tgtl18
tgta=$tgta18
elif [[ "$NODE_VERSION" == "20" ]]; then
tgtl="None"
tgta=$tgta20
else
tgtl=$tgtl18
tgta=$tgta18
NODE_VERSION="18"
fi
Should be
if [[ "$NODE_VERSION" == "12" ]]; then
tgtl=$tgtl12
tgta=$tgta12
elif [[ "$NODE_VERSION" == "14" ]]; then
tgtl=$tgtl14
tgta=$tgta14
elif [[ "$NODE_VERSION" == "16" ]]; then
tgtl=$tgtl16
tgta=$tgta16
elif [[ "$NODE_VERSION" == "20" ]]; then
tgtl="None"
tgta=$tgta20
else
tgtl=$tgtl18
tgta=$tgta18
NODE_VERSION="18"
fi