Fix building cut (#359)

* Set internal release versions more flexible

* [skip ci] Fix empty field in cut in the building.sh
pull/360/head
Dmitry Ilyin 2022-08-16 07:31:08 +03:00 committed by GitHub
parent d1c550c0a9
commit 612ff2729d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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