fixed parameters of get_partition
This commit is contained in:
@@ -52,7 +52,10 @@ cleanup() {
|
|||||||
}
|
}
|
||||||
trap 'echo "Status Code: $?"; cleanup;' EXIT
|
trap 'echo "Status Code: $?"; cleanup;' EXIT
|
||||||
|
|
||||||
get_partition($disk_name, $part_num) {
|
get_partition() {
|
||||||
|
$disk_name="$1"
|
||||||
|
$part_num="$2"
|
||||||
|
|
||||||
third_part_dev="$(
|
third_part_dev="$(
|
||||||
lsblk -ln -o NAME,TYPE "$disk_name" \
|
lsblk -ln -o NAME,TYPE "$disk_name" \
|
||||||
| awk '$2=="part"{print "/dev/"$1}' \
|
| awk '$2=="part"{print "/dev/"$1}' \
|
||||||
|
|||||||
Reference in New Issue
Block a user