diff --git a/bin/m b/bin/m index a0e279e..ca08fe1 100755 --- a/bin/m +++ b/bin/m @@ -1503,7 +1503,7 @@ get_latest_installed_version() { ;; esac - if [[ $version =~ ^([0-9)]\.([0-9]+)(-ent)?$ ]]; then + if [[ $version =~ ^([0-9]+)\.([0-9]+)(-ent)?$ ]]; then local series="${BASH_REMATCH[1]}\.${BASH_REMATCH[2]}" local ent="${BASH_REMATCH[3]}" version=`find ${VERSIONS_DIR} -mindepth 1 -maxdepth 1 -type d \