Skip to content
Snippets Groups Projects
Commit 965f4abd authored by Frederic Van Espen's avatar Frederic Van Espen Committed by Friendly Automation
Browse files

ast_coredumper: Fix deleting results when output dir is set

When OUTPUTDIR is set to another directory and the
--delete-results-after is set, the resulting txt files are
not deleted.

ASTERISK-29794 #close

Change-Id: I1c0071f6809a1e3f5cfc455d6eb08378bc0d7286
parent bb27d5e1
No related branches found
No related tags found
1 merge request!48asterisk uplift to 18.11.2
......@@ -314,7 +314,11 @@ for i in "${!COREDUMPS[@]}" ; do
fi
if $DELETE_RESULTS_AFTER ; then
rm -rf "${cf//:/-}"-{brief,full,thread1,locks,info}.txt
to_delete=$cf
if [ -n "$OUTPUTDIR" ] ; then
to_delete="$OUTPUTDIR/$cfname"
fi
rm -rf "${to_delete//:/-}"-{brief,full,thread1,locks,info}.txt
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment