We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d73f634 + fd4127f commit 071d57bCopy full SHA for 071d57b
modules/run/artifacts/opt/jboss/container/java/run/run-java.sh
@@ -1,4 +1,4 @@
1
-#!/bin/sh
+#!/bin/bash
2
3
# Fail on a single failed command
4
set -eo pipefail
@@ -202,18 +202,8 @@ get_classpath() {
202
203
# Set process name if possible
204
get_exec_args() {
205
- EXEC_ARGS=""
206
if [ "x${JAVA_APP_NAME}" != x ]; then
207
- # Not all shells support the 'exec -a newname' syntax..
208
- `exec -a test true 2>/dev/null`
209
- if [ "$?" = 0 ] ; then
210
- echo "-a '${JAVA_APP_NAME}'"
211
- else
212
- # Lets switch to bash if you have it installed...
213
- if [ -f "/bin/bash" ] ; then
214
- exec "/bin/bash" $0 $@
215
- fi
216
+ echo "-a '${JAVA_APP_NAME}'"
217
fi
218
}
219
0 commit comments