Fix malfunctioning if-conditions
This commit is contained in:
parent
76a33b8733
commit
fbe8221005
1 changed files with 4 additions and 4 deletions
|
@ -28,11 +28,11 @@ $Global:SetupConfigPostprocessor = {
|
||||||
if ($order -eq 2) {
|
if ($order -eq 2) {
|
||||||
$newOrder--;
|
$newOrder--;
|
||||||
} else {
|
} else {
|
||||||
if ($order -ge $newIndex) {
|
if ($newOrder -lt 2) {
|
||||||
$newOrder++;
|
$newOrder++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($order -lt 2) {
|
if ($newOrder -ge $newIndex) {
|
||||||
$newOrder++;
|
$newOrder++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -64,11 +64,11 @@ $Global:SetupConfigPostprocessor = {
|
||||||
if ($partitionID -eq 2) {
|
if ($partitionID -eq 2) {
|
||||||
$newID--;
|
$newID--;
|
||||||
} else {
|
} else {
|
||||||
if ($partitionID -ge $newIndex) {
|
if ($newID -lt 2) {
|
||||||
$newID++;
|
$newID++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($partitionID -lt 2) {
|
if ($newID -ge $newIndex) {
|
||||||
$newID++;
|
$newID++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue