Fix Issue #213 Get JAVA_OPTS, JENKIS_OPTS and arguments working
With the right quoting
diff --git a/jenkins.sh b/jenkins.sh
index dd28123..26768e9 100755
--- a/jenkins.sh
+++ b/jenkins.sh
@@ -29,7 +29,7 @@
# if `docker run` first argument start with `--` the user is passing jenkins launcher arguments
if [[ $# -lt 1 ]] || [[ "$1" == "--"* ]]; then
- exec java $JAVA_OPTS -jar /usr/share/jenkins/jenkins.war $JENKINS_OPTS "$@"
+ eval "exec java $JAVA_OPTS -jar /usr/share/jenkins/jenkins.war $JENKINS_OPTS \"\$@\""
fi
# As argument is not jenkins, assume user want to run his own process, for sample a `bash` shell to explore this image