From 6d24f88d16e00fb915a6abd6e8fdcf192c54dfe7 Mon Sep 17 00:00:00 2001 From: Marc Schoechlin Date: Thu, 19 Jul 2018 20:59:19 +0200 Subject: [PATCH] Bugfix, ambiguous redirect if unset Thanks to Drew Wyatt --- assembly/src/release/bin/activemq | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assembly/src/release/bin/activemq b/assembly/src/release/bin/activemq index 0edc90801f..358204b726 100755 --- a/assembly/src/release/bin/activemq +++ b/assembly/src/release/bin/activemq @@ -325,8 +325,12 @@ invokeJar(){ DOIT_POSTFIX=" - $ACTIVEMQ_USER" echo "INFO: changing to user '$ACTIVEMQ_USER' to invoke java" fi + # Execute java binary 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 \ -Dactivemq.classpath=\"${ACTIVEMQ_CLASSPATH}\" \ -Dactivemq.home=\"${ACTIVEMQ_HOME}\" \