mirror of
https://gitee.com/dcren/initializr.git
synced 2025-07-16 16:50:42 +08:00
Fix version -> repo mapping in install.sh
This commit is contained in:
parent
ae9f7cbd81
commit
58d4b29785
@ -3,7 +3,7 @@
|
||||
set -e
|
||||
# set -x
|
||||
|
||||
VERSION="1.0.1.RELEASE"
|
||||
VERSION="1.0.2.RELEASE"
|
||||
if [ -z "${PREFIX}" ]; then
|
||||
PREFIX="/usr/local/bin"
|
||||
fi
|
||||
@ -11,10 +11,17 @@ if [ -z "${JAR_FILE}" ]; then
|
||||
JAR_FILE="/tmp/spring.zip"
|
||||
if [ -z "${JAR_URL}" ]; then
|
||||
|
||||
echo "Downloading spring ${VERSION} distribution"
|
||||
echo
|
||||
case "${VERSION}" in
|
||||
*SNAPSHOT) REPO=snapshot ;;
|
||||
*.M*) REPO=milestone ;;
|
||||
*.RC*) REPO=milestone ;;
|
||||
*) REPO=release ;;
|
||||
esac
|
||||
|
||||
JAR_URL="https://repo.spring.io/milestone/org/springframework/boot/spring-boot-cli/${VERSION}/spring-boot-cli-${VERSION}-bin.zip"
|
||||
echo "Downloading spring ${VERSION} distribution from repo.spring.io/${REPO}"
|
||||
echo
|
||||
|
||||
JAR_URL="https://repo.spring.io/${REPO}/org/springframework/boot/spring-boot-cli/${VERSION}/spring-boot-cli-${VERSION}-bin.zip"
|
||||
curl --progress-bar --fail "$JAR_URL" -o "$JAR_FILE"
|
||||
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user