-
Notifications
You must be signed in to change notification settings - Fork 0
/
prereqs.sh
executable file
·26 lines (25 loc) · 909 Bytes
/
prereqs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
if [ "$(uname)" == "Darwin" ]; then
echo "Mac OS X platform detected"
if ! [ -x "$(command -v brew)" ]; then
echo 'Brew is not installed, trying SDKMAN!'
if ! [ -x "$(command -v sdk)" ]; then
echo 'SDKMAN! is not installed, exiting.'
else
sdk install springboot
spring --version
spring install org.springframework.cloud:spring-cloud-cli:2.2.1.RELEASE
fi
else
brew tap pivotal/tap
brew install springboot
spring --version
spring install org.springframework.cloud:spring-cloud-cli:2.2.1.RELEASE
fi
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
echo "GNU/Linux platform detected"
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
echo "32 bits Windows NT platform detected"
elif [ "$(exspr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
echo "64 bits Windows NT platform detected"
fi