Bei der For-Schleife den Schleifenkopf von unnötigen Zeichen befreit.
This commit is contained in:
parent
1531c517b9
commit
0d839ab407
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ if [[ $NOCASEMATCH_UNSET ]]; then
|
||||||
shopt -s nocasematch
|
shopt -s nocasematch
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for (( i=${NUMBER_OF_PARTITIONS}; ${i} > 0 ; i=${i}-1 )) ; do
|
for (( i=NUMBER_OF_PARTITIONS; i > 0 ; i=i-1 )) ; 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