mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
committed by
Joshua Colp
parent
cfcbf0adad
commit
cb44ceadec
@@ -314,7 +314,11 @@ for i in "${!COREDUMPS[@]}" ; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if $DELETE_RESULTS_AFTER ; then
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user