Bugfix, ambiguous redirect if unset

Thanks to Drew Wyatt<drew.wyatt@carshop.co.uk>
This commit is contained in:
Marc Schoechlin 2018-07-19 20:59:19 +02:00
parent 46160c7b7f
commit 6d24f88d16
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}\" \