fix search no description

This commit is contained in:
emmett1
2018-07-21 17:46:14 +08:00
parent 1169c8886d
commit e72f0e9955

View File

@@ -624,6 +624,7 @@ searchpkg() {
for out in ${OUTPUT[@]}; do
if [ -f $port/$out/$BUILD_SCRIPT ]; then
pushd $port/$out
description=$(grep "^# description[[:blank:]]*:" $BUILD_SCRIPT | sed 's/^# description[[:blank:]]*:[[:blank:]]*//')
. $BUILD_SCRIPT
popd
if [ ! -z "$name" ] && [ ! -z "$version" ] && [ ! -z "$release" ]; then