Bugfix, ambiguous redirect if unset

Thanks to Drew Wyatt<drew.wyatt@carshop.co.uk>

(cherry picked from commit 6d24f88d16)
This commit is contained in:
Marc Schoechlin 2018-07-19 20:59:19 +02:00 committed by Christopher L. Shannon (cshannon)
parent 02d5287af8
commit 797b8ee46f
1 changed files with 4 additions and 0 deletions

View File

@ -325,8 +325,12 @@ invokeJar(){
DOIT_POSTFIX=" - $ACTIVEMQ_USER" DOIT_POSTFIX=" - $ACTIVEMQ_USER"
echo "INFO: changing to user '$ACTIVEMQ_USER' to invoke java" echo "INFO: changing to user '$ACTIVEMQ_USER' to invoke java"
fi fi
# Execute java binary # Execute java binary
if [ -n "$TASK_TODO" ] && [ "$TASK_TODO" != "stop" ];then if [ -n "$TASK_TODO" ] && [ "$TASK_TODO" != "stop" ];then
if [ -z "$ACTIVEMQ_OUT" ]; then
ACTIVEMQ_OUT="/dev/null"
fi
$EXEC_OPTION $DOIT_PREFIX "\"$JAVACMD\" $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS \ $EXEC_OPTION $DOIT_PREFIX "\"$JAVACMD\" $ACTIVEMQ_OPTS $ACTIVEMQ_DEBUG_OPTS \
-Dactivemq.classpath=\"${ACTIVEMQ_CLASSPATH}\" \ -Dactivemq.classpath=\"${ACTIVEMQ_CLASSPATH}\" \
-Dactivemq.home=\"${ACTIVEMQ_HOME}\" \ -Dactivemq.home=\"${ACTIVEMQ_HOME}\" \