Shell output limit in flowable

I trigger a small shellscript from flowable that downloads a file from jenkins and rsyncs it to our reporitory.

I noticed that the script always failed at the same point, although the script runs normal when triggered from the command line.
There was no error in the tomcat logs.

Making wget “quiet” with -nv solved the issue.
My guess is the output of wget is to much for flowable to handle.

How to reproduce:
publishToBuildstore.sh

#!/bin/bash
RMT_NODE=$1
JENKINS_JOB=$2
echo $RMT_NODE
echo $JENKINS_JOB
mkdir /tmp/$RMT_NODE
cd /tmp/$RMT_NODE
wget --auth-no-challenge --user=slag --password=111d5c5266e9fd169ab90 -nv  https://snk-dsw-jenkins-
master.newtec.eu/job/dev_rmt_scm/$JENKINS_JOB/artifact/*zip*/archive.zip
unzip -j archive.zip
rsync -avx * snk-build-store.newtec.eu::builddata/$RMT_NODE --exclude=archive.zip



 <serviceTask id="sid-D9B7C338-343B-4369-BD40-86FC2BC8935E" flowable:type="shell">
  <extensionElements>
    <flowable:field name="command">
      <flowable:string><![CDATA[/opt/scripts/publishToBuildstore.sh]]></flowable:string>
    </flowable:field>
    <flowable:field name="arg1">
      <flowable:expression><![CDATA[${releaseNode}]]></flowable:expression>
    </flowable:field>
    <flowable:field name="arg2">
      <flowable:expression><![CDATA[${jenkinsJob}]]></flowable:expression>
    </flowable:field>
    <flowable:field name="wait">
      <flowable:string><![CDATA[true]]></flowable:string>
    </flowable:field>
    <flowable:field name="outputVariable">
      <flowable:string><![CDATA[output]]></flowable:string>
    </flowable:field>
    <flowable:field name="directory">
      <flowable:string><![CDATA[/opt/scripts]]></flowable:string>
    </flowable:field>
    <flowable:executionListener event="end" class="org.flowable.engine.impl.bpmn.listener.ScriptExecutionListener">
      <flowable:field name="script">
        <flowable:string><![CDATA[print(execution.getVariable("output"));]]></flowable:string>
      </flowable:field>
      <flowable:field name="language">
        <flowable:string><![CDATA[javascript]]></flowable:string>
      </flowable:field>
    </flowable:executionListener>
  </extensionElements>
</serviceTask>