Compare commits
No commits in common. "462d256b2523b7fe08bdb33311b9237244cb119b" and "09876ec68034dc8d9874cc51f7671f8712601cc7" have entirely different histories.
462d256b25
...
09876ec680
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ ESP_LABEL="EFI"
|
|||
|
||||
CHECK_PARTITION_EXISTENCE_OUTPUT=$(lsblk -pldo NAME | grep -ic "${DRIVE}")
|
||||
|
||||
if [[ ${CHECK_PARTITION_EXISTENCE_OUTPUT} -eq 0 ]]; then
|
||||
if [[ ${CHECK_PARTITION_EXISTENCE_OUTPUT} -eq 1 ]]; then
|
||||
echo "Platte existiert nicht, Abbruch!"
|
||||
exit 1
|
||||
else
|
||||
|
@ -27,7 +27,7 @@ fi
|
|||
|
||||
declare -A PARTITIONS_PRESENT=()
|
||||
|
||||
CHECK_PARTITIONS_OUTPUT=$(lsblk -plo NAME,PARTTYPE | grep -i "${DRIVE}[0-9]")
|
||||
CHECK_PARTITIONS_OUTPUT=$(lsblk -pldo NAME,PARTTYPE "${DRIVE}[0-9]")
|
||||
|
||||
CHECK_ESP=$(echo "${CHECK_PARTITIONS_OUTPUT}" | grep -c "c12a7328-f81f-11d2-ba4b-00a0c93ec93b")
|
||||
PARTITIONS_PRESENT+=([ESP]="${CHECK_ESP}")
|
||||
|
|
Loading…
Reference in a new issue