commit:     6f5d03a6bd34f684331837575560babfa91899ea
Author:     Paul Varner <fuzzyray <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 23 21:19:42 2015 +0000
Commit:     Paul Varner <fuzzyray <AT> gentoo <DOT> org>
CommitDate: Fri Jan 23 21:19:42 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=6f5d03a6

Fix eread to only display elog files. (Bug 534686)

---
 bin/eread | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/eread b/bin/eread
index d74a167..fe095a6 100755
--- a/bin/eread
+++ b/bin/eread
@@ -34,13 +34,13 @@ PS3="Choice? "
 SORT=${EREAD_SORT_ORDER}
 
 find_unsorted() {
-       find . -type f | sed -e "s:\./::g"
+       find . -name '*:*:*.log*' | sed -e "s:\./::g"
 }
 find_by_name() {
-       find . -type f | sort | sed -e "s:\./::g"
+       find . -name '*:*:*.log*' | sort | sed -e "s:\./::g"
 }
 find_by_time() {
-       find . -type f | sort -k 3 -t : | sed -e "s:\./::g"
+       find . -name '*:*:*.log*' | sort -k 3 -t : | sed -e "s:\./::g"
 }
 find_files() {
        case ${SORT} in

Reply via email to