Skip to content

Commit

Permalink
Support 'nave use 5' and 'nave use 4'
Browse files Browse the repository at this point in the history
The better to LTS you with.
  • Loading branch information
isaacs committed Jan 26, 2016
1 parent d3acfb7 commit 232bec2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nave.sh
Expand Up @@ -398,6 +398,8 @@ ver () {
version="${version/v/}"
case $version in
latest | stable) nave_$version ;;
+([0-9])) nave_version_family "$version\."'[0-9]+' ;;
+([0-9])\.) nave_version_family "$version"'[0-9]+' ;;
+([0-9])\.+([0-9])) nave_version_family "$version" ;;
+([0-9])\.+([0-9])\.+([0-9])) echo $version ;;
*) [ "$nonames" = "" ] && echo $version ;;
Expand Down

0 comments on commit 232bec2

Please sign in to comment.