diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2011-07-25 11:28:23 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-07-26 12:36:00 +0200 |
commit | 0e945484846a7be80aa6ab4711b0374d994ad98c (patch) | |
tree | 47900f8966a5b5940a55618a9fd2b9172a248a9c /contrib/osmo_pcap_clean_old | |
parent | b4fc89bfcf8902037e9a9c6759ae47a68e2dc44a (diff) |
Fix bug where the cleanup script kept the oldest files
Fixes OW #21.
Diffstat (limited to 'contrib/osmo_pcap_clean_old')
-rwxr-xr-x | contrib/osmo_pcap_clean_old | 2 |
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" |