From e72f0e9955dcec9bde4ceb2d6af60955f05342e3 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Sat, 21 Jul 2018 17:46:14 +0800 Subject: [PATCH] fix search no description --- scratch | 1 + 1 file changed, 1 insertion(+) diff --git a/scratch b/scratch index 667c08f..33e12f2 100755 --- a/scratch +++ b/scratch @@ -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