<p>Friendly Automation <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/17691">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  George Joseph: Looks good to me, approved
  Friendly Automation: Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ast_coredumper: Fix deleting results when output dir is set<br><br>When OUTPUTDIR is set to another directory and the<br>--delete-results-after is set, the resulting txt files are<br>not deleted.<br><br>ASTERISK-29794 #close<br><br>Change-Id: I1c0071f6809a1e3f5cfc455d6eb08378bc0d7286<br>---<br>M contrib/scripts/ast_coredumper<br>1 file changed, 5 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/contrib/scripts/ast_coredumper b/contrib/scripts/ast_coredumper</span><br><span>index 353137f..2f685ac 100755</span><br><span>--- a/contrib/scripts/ast_coredumper</span><br><span>+++ b/contrib/scripts/ast_coredumper</span><br><span>@@ -314,7 +314,11 @@</span><br><span>     fi</span><br><span> </span><br><span>       if $DELETE_RESULTS_AFTER ; then</span><br><span style="color: hsl(0, 100%, 40%);">-         rm -rf "${cf//:/-}"-{brief,full,thread1,locks,info}.txt</span><br><span style="color: hsl(120, 100%, 40%);">+             to_delete=$cf</span><br><span style="color: hsl(120, 100%, 40%);">+         if [ -n "$OUTPUTDIR" ] ; then</span><br><span style="color: hsl(120, 100%, 40%);">+                       to_delete="$OUTPUTDIR/$cfname"</span><br><span style="color: hsl(120, 100%, 40%);">+              fi</span><br><span style="color: hsl(120, 100%, 40%);">+            rm -rf "${to_delete//:/-}"-{brief,full,thread1,locks,info}.txt</span><br><span>     fi</span><br><span> done</span><br><span> </span><br><span></span><br></pre><div style="white-space:pre-wrap"></div><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/17691">change 17691</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/17691"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 19 </div>
<div style="display:none"> Gerrit-Change-Id: I1c0071f6809a1e3f5cfc455d6eb08378bc0d7286 </div>
<div style="display:none"> Gerrit-Change-Number: 17691 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-CC: Frederic Van Espen <frederic.ve@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>