You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a check if [ ! -z "$UPLOADTOOL_BODY" ] ; then which I think evaluates to false, causing the log not to be appended. The variable and if clause was introduced in 494d5a5 - could it be that it needs to be if [ -z "$UPLOADTOOL_BODY" ] ; then?
Activity
probonopd commentedon Mar 30, 2018
There is a check
if [ ! -z "$UPLOADTOOL_BODY" ] ; thenwhich I think evaluates to false, causing the log not to be appended. The variable and if clause was introduced in 494d5a5 - could it be that it needs to beif [ -z "$UPLOADTOOL_BODY" ] ; then?TheAssassin commentedon Mar 30, 2018
@probonopd when using
-zto check whether a variable has set, there must not be quotes, IIRC.See also 494d5a5#diff-41c2c2edf223528193cd5163683cad3dR42.
A more straightforward (bash-only) syntax would be
[ "$UPLOADTOOL_BODY" != "" ].TheAssassin commentedon Mar 30, 2018
Also, I think you're right workflow wise, the
!negates the value of the check, which is not desired here.