aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/osmo_pcap_clean_old
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/osmo_pcap_clean_old')
-rwxr-xr-xcontrib/osmo_pcap_clean_old2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/osmo_pcap_clean_old b/contrib/osmo_pcap_clean_old
index d24a94b..ad150a8 100755
--- a/contrib/osmo_pcap_clean_old
+++ b/contrib/osmo_pcap_clean_old
@@ -25,7 +25,7 @@ cd "$BASEPATH"
do_cleanup()
{
i=1
- find . -name "trace-$1*" |sort | while read LOG; do
+ find . -name "trace-$1*" |sort -r | while read LOG; do
if [ $i -gt $NUMFILES ]; then
[ $VERBOSE -eq 1 ] && echo "Deleting file \"$LOG\""
rm -f "$LOG"