Das 'lsblk'-Statment modifiziert.
This commit is contained in:
parent
9081ba06d0
commit
048ff40795
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ fi
|
||||||
RECREATE_PARTITIONS="1"
|
RECREATE_PARTITIONS="1"
|
||||||
declare -A PARTITIONS_PRESENT=()
|
declare -A PARTITIONS_PRESENT=()
|
||||||
|
|
||||||
CHECK_PARTITIONS_OUTPUT=$(lsblk -o NAME,PARTTYPE | grep "${DRIVE//\/dev\/}[0-9]")
|
CHECK_PARTITIONS_OUTPUT=$(lsblk -po NAME,PARTTYPE | grep "${DRIVE}[0-9]")
|
||||||
|
|
||||||
CHECK_ESP=$(echo "${CHECK_PARTITIONS_OUTPUT}" | grep -c "c12a7328-f81f-11d2-ba4b-00a0c93ec93b")
|
CHECK_ESP=$(echo "${CHECK_PARTITIONS_OUTPUT}" | grep -c "c12a7328-f81f-11d2-ba4b-00a0c93ec93b")
|
||||||
PARTITIONS_PRESENT+=([ESP]="${CHECK_ESP}")
|
PARTITIONS_PRESENT+=([ESP]="${CHECK_ESP}")
|
||||||
|
|
Loading…
Reference in a new issue