Add nohttp script

This commit is contained in:
Kris De Volder
2019-06-05 14:42:32 -07:00
parent 83d7ddecd7
commit 154eb64a39

12
nohttp.sh Executable file
View 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