Fix non-browsable 'games' due to " in slack-desc.

Thanks to slakmagik for this fix.
This commit is contained in:
mauro.giachero 2009-04-29 14:35:37 +00:00
parent b599f398a3
commit cb2dff127a

View File

@ -1710,7 +1710,7 @@ gen_search_package() {
if [[ $DIAG ]]; then
for i in $RESULTS; do
DESC=$(grep -hZm1 ^$(cut -d/ -f2 <<< "$i") ./$i/slack-desc* |
sed 's/^[^(]*( *\(.*[^ ]\) *)[^)]*$/\1/')
sed 's/^[^(]*( *\(.*[^ ]\) *)[^)]*$/\1/;s/"/'\''/g')
if [[ $CATEGORY == '*' ]]; then
NAME=$i
else