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