upgrades: the X.Y version is equivalent to the latest patch release

This commit is contained in:
Twenty Panda 2024-03-14 12:09:29 +07:00 committed by p
parent 4dc1068027
commit bc55c01cc6
2 changed files with 27 additions and 3 deletions

View file

@ -9,7 +9,7 @@ SELF_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
version=$1
DIR=$2
v=$(echo $version | sed -E -e 's/([0-9]+\.[0-9]+).*/\1/')
v=$(echo $version | sed -E -e 's/^([0-9]+\.[0-9]+).*/\1/')
read url ref semver < $SELF_DIR/sources/$v
rm -fr $DIR/src