Die Schleife zum analysieren angepasst, sodass sie wieder eine Zählvariable hat.
This commit is contained in:
parent
e1246c407e
commit
e8bd40f650
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ if [[ $NOCASEMATCH_UNSET ]]; then
|
||||||
shopt -s nocasematch
|
shopt -s nocasematch
|
||||||
fi
|
fi
|
||||||
|
|
||||||
until ${NUMBER_OF_PARTITIONS}; do
|
for (( i=${NUMBER_OF_PARTITIONS}; ${i} > 0 ; ${i}-- )) ; do
|
||||||
OUTPUT=$(sgdisk -i "${i}" "${DRIVE}")
|
OUTPUT=$(sgdisk -i "${i}" "${DRIVE}")
|
||||||
PARTITION_EXISTS=$(echo "${OUTPUT}" | grep -c "GUID")
|
PARTITION_EXISTS=$(echo "${OUTPUT}" | grep -c "GUID")
|
||||||
if [[ "${PARTITION_EXISTS}" != "0" ]]; then
|
if [[ "${PARTITION_EXISTS}" != "0" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue