mirror of
https://gitee.com/dcren/initializr.git
synced 2026-09-19 22:37:40 +08:00
Update for 0.5.0.M1
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -e spring -a ! -d spring ]; then
|
||||
echo "You already have a local file called 'spring' and it's not a directory"
|
||||
echo "Remove it before trying again"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d spring ]; then
|
||||
echo "You already have a local directory called 'spring'. Removing..."
|
||||
rm -rf spring
|
||||
fi
|
||||
|
||||
echo "Installing Spring in local directory..."
|
||||
|
||||
if [ ! -e spring.zip ]; then
|
||||
wget ${host}/spring.zip
|
||||
else
|
||||
echo "Using locally cached spring.zip"
|
||||
fi
|
||||
|
||||
echo "Unpacking spring.zip"
|
||||
unzip -u spring.zip
|
||||
rm spring.zip
|
||||
|
||||
echo "To use the spring CLI:"
|
||||
echo " export SPRING_HOME="`pwd`/spring
|
||||
echo " export PATH="`pwd`/spring/bin':\$PATH'
|
||||
echo "And (e.g.) 'spring run app.groovy'"
|
||||
Reference in New Issue
Block a user