[skip ci] Fix empty field in cut in the building.sh

pull/359/head
Dmitry Ilyin 2022-08-16 07:30:09 +03:00
parent c0df98b76d
commit cc942ef088
1 changed files with 2 additions and 2 deletions

View File

@ -197,10 +197,10 @@ copy_function() {
uni_build() {
BOARD=$FUNCNAME
SOC=$(echo $BOARD | cut -d '_' -f 1)
SOC=$(echo $BOARD | cut -sd '_' -f 1)
set -e
if [ "$(echo $BOARD | cut -d '_' -f 2)" == "" ]; then
if [ "$(echo $BOARD | cut -sd '_' -f 2)" == "" ]; then
BOARD="${BOARD}_openipc"
elif [ "$BOARD" == "hi3518ev200_hs303" ]; then
BOARD=hi3518ev200_openipc