Die Schleife zum analysieren angepasst, sodass sie wieder eine Zählvariable hat.

This commit is contained in:
eichehome 2023-07-20 21:52:45 +02:00
parent e1246c407e
commit e8bd40f650

View file

@ -108,7 +108,7 @@ if [[ $NOCASEMATCH_UNSET ]]; then
shopt -s nocasematch
fi
until ${NUMBER_OF_PARTITIONS}; do
for (( i=${NUMBER_OF_PARTITIONS}; ${i} > 0 ; ${i}-- )) ; do
OUTPUT=$(sgdisk -i "${i}" "${DRIVE}")
PARTITION_EXISTS=$(echo "${OUTPUT}" | grep -c "GUID")
if [[ "${PARTITION_EXISTS}" != "0" ]]; then