From 612ff2729d213e2fa95a7ac0fce8a0add86476f7 Mon Sep 17 00:00:00 2001 From: Dmitry Ilyin Date: Tue, 16 Aug 2022 07:31:08 +0300 Subject: [PATCH] Fix building cut (#359) * Set internal release versions more flexible * [skip ci] Fix empty field in cut in the building.sh --- building.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/building.sh b/building.sh index c8c247e1..6e47b416 100755 --- a/building.sh +++ b/building.sh @@ -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