Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Be more correct about handling version families.

  • Loading branch information...
commit daefc959f37eb0e8f91df6ee8213df751df86eb3 1 parent 7d5ac87
@isaacs authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 nave.sh
View
5 nave.sh
@@ -23,6 +23,9 @@ if [ "$NAVE_DEBUG" != "" ]; then
set -x
fi
+# Use fancy pants globs
+shopt -s extglob
+
tar=${TAR-tar}
main () {
@@ -224,7 +227,7 @@ ver () {
version="${version/v/}"
case $version in
latest | stable) nave_$version ;;
- ?.?) nave_version_family "$version" ;;
+ +([0-9])\.+([0-9])) nave_version_family "$version" ;;
*) echo $version ;;
esac
}
Please sign in to comment.
Something went wrong with that request. Please try again.