This commit is contained in:
Daniel Langbein 2021-05-01 13:47:15 +02:00
parent fb96ff2b7f
commit 0f26bfbe69

View File

@ -15,7 +15,8 @@ function get_partitions(){
# Remove first line of output (which is just the block device $1 itself)
# with sed: sed 1d
PARTITIONS="$(lsblk -pln -o name "$1" | sed 1d)" || return $?
newline_separated_to_array
newline_separated_to_array PARTITIONS PARTITIONS || return $?
}
function get_block_devices() {