diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/libs/lib-blockdevices-filesystems.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/libs/lib-blockdevices-filesystems.sh b/src/core/libs/lib-blockdevices-filesystems.sh index 1c4948a..6b1b30a 100644 --- a/src/core/libs/lib-blockdevices-filesystems.sh +++ b/src/core/libs/lib-blockdevices-filesystems.sh @@ -286,7 +286,9 @@ partition() # setup input var for sfdisk # format: each line=1 part. <start> <size> <id> <bootable>[ <c,h,s> <c,h,s>] - for fsspec in $STRING; do + read -r -a fsspecs <<< "$STRING" # split up like this otherwise '*' will be globbed. which usually means an entry containing * is lost + + for fsspec in "${fsspecs[@]}"; do fssize=$(echo $fsspec | tr -d ' ' | cut -f1 -d:) fssize_spec=",$fssize" [ "$fssize" = "*" ] && fssize_spec=';' |