tazbug rev 61
bugs.cgi: Dont show file path in results (again)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Jan 07 20:49:14 2014 +0100 (2014-01-07) |
parents | 141a32000fcd |
children | 10f3f4d09e09 |
files | web/bugs.cgi |
line diff
1.1 --- a/web/bugs.cgi Tue Jan 07 20:43:48 2014 +0100 1.2 +++ b/web/bugs.cgi Tue Jan 07 20:49:14 2014 +0100 1.3 @@ -765,8 +765,7 @@ 1.4 cd $bugdir 1.5 for bug in * 1.6 do 1.7 - cd ${bugdir}/${bug} 1.8 - result=$(fgrep -i "$(GET search)" *) 1.9 + result=$(fgrep -i -h "$(GET search)" $bug/*) 1.10 if [ "$result" ]; then 1.11 found=$(($found + 1)) 1.12 id=${bug}