Statement zum Checken der Partitionen geändert.

This commit is contained in:
eichehome 2023-07-26 01:13:22 +02:00
parent 04e14e2348
commit 462d256b25

View file

@ -27,7 +27,7 @@ fi
declare -A PARTITIONS_PRESENT=() declare -A PARTITIONS_PRESENT=()
CHECK_PARTITIONS_OUTPUT=$(lsblk -pldo NAME,PARTTYPE "${DRIVE}[0-9]") CHECK_PARTITIONS_OUTPUT=$(lsblk -plo NAME,PARTTYPE | grep -i "${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}")