Merge "common: build.sh: fix build_check invalid"

This commit is contained in:
Weiwen Chen
2021-01-21 10:01:48 +08:00
committed by Gerrit Code Review

View File

@ -224,9 +224,10 @@ function build_check(){
dst=${chk_item%%,*}
src=${chk_item##*,}
eval $dst 1>/dev/null 2>&1
if [ $? -ne 0 ];then
echo "**************************************"
echo "**************************************"
if eval $dst &>/dev/null;then
echo "Check [OK]: $dst"
else
echo "Please install ${dst%% *} first"
echo " sudo apt-get install $src"
fi