diff --git a/install.uefi b/install.uefi index 23fb190..8cce4d1 100644 --- a/install.uefi +++ b/install.uefi @@ -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