Refactoring the way dynamic partitions are searched 50/303050/1 accepted/tizen_unified_riscv accepted/tizen/unified/20240112.154547 accepted/tizen/unified/riscv/20240115.113710
authorJacek Kryszyn <j.kryszyn@samsung.com>
Tue, 19 Dec 2023 09:40:08 +0000 (10:40 +0100)
committerJacek Kryszyn <j.kryszyn@samsung.com>
Tue, 19 Dec 2023 09:40:08 +0000 (10:40 +0100)
Output of parse-dynparts is processed using here string instead
of here document which results in more readable code.

Change-Id: If2982a30532d323e65afc613ca9a33cdd2a98c05

scripts/init.sh

index 2dc1237dd57fd274037433829147b70b03c00076..5f32bbc89a63425ff0e824d441249a43625560fb 100755 (executable)
@@ -83,9 +83,7 @@ function find_partitions()
             then
                 HALFS=`map_from_super "$part_name" "$part_table"`
             fi
-        done << PARSE_DYNPARTS_INPUT
-$PARSE_DYNPARTS
-PARSE_DYNPARTS_INPUT
+        done <<< "$PARSE_DYNPARTS"
     fi
 
     if [ x$ROOTFS = "x" ]