Add nohttp script
This commit is contained in:
12
nohttp.sh
Executable file
12
nohttp.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
VERSION=0.0.2.RELEASE
|
||||
if [ ! -z ${bamboo_JDK8_HOME} ]; then
|
||||
# put java 8 on the path when running on bamboo
|
||||
echo "Running on bamboo. Put JDK on path: ${bamboo_JDK8_HOME}/bin"
|
||||
export PATH=${bamboo_JDK8_HOME}/bin/:${PATH}
|
||||
fi
|
||||
if [ ! -f nohttp-cli-${VERSION}.jar ]; then
|
||||
curl -s -O https://repo.maven.apache.org/maven2/io/spring/nohttp/nohttp-cli/${VERSION}/nohttp-cli-${VERSION}.jar
|
||||
fi
|
||||
java -jar nohttp-cli-${VERSION}.jar
|
||||
Reference in New Issue
Block a user