fixed parameters of get_partition

This commit is contained in:
poslop
2026-01-16 16:00:59 -06:00
parent ce05c833e7
commit 265839faae

View File

@@ -52,7 +52,10 @@ cleanup() {
}
trap 'echo "Status Code: $?"; cleanup;' EXIT
get_partition($disk_name, $part_num) {
get_partition() {
$disk_name="$1"
$part_num="$2"
third_part_dev="$(
lsblk -ln -o NAME,TYPE "$disk_name" \
| awk '$2=="part"{print "/dev/"$1}' \