mirror of
https://codeberg.org/privacy1st/arch
synced 2024-12-23 01:16:04 +01:00
fix3
This commit is contained in:
parent
fb96ff2b7f
commit
0f26bfbe69
@ -15,7 +15,8 @@ function get_partitions(){
|
|||||||
# Remove first line of output (which is just the block device $1 itself)
|
# Remove first line of output (which is just the block device $1 itself)
|
||||||
# with sed: sed 1d
|
# with sed: sed 1d
|
||||||
PARTITIONS="$(lsblk -pln -o name "$1" | sed 1d)" || return $?
|
PARTITIONS="$(lsblk -pln -o name "$1" | sed 1d)" || return $?
|
||||||
newline_separated_to_array
|
|
||||||
|
newline_separated_to_array PARTITIONS PARTITIONS || return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_block_devices() {
|
function get_block_devices() {
|
||||||
|
Loading…
Reference in New Issue
Block a user