From fbe822100520270a3bb2f1a53dee3932e4d72ef3 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 9 Jul 2023 00:18:53 +0200 Subject: [PATCH] Fix malfunctioning if-conditions --- profiles/DerGeret/Windows/Setup.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/profiles/DerGeret/Windows/Setup.ps1 b/profiles/DerGeret/Windows/Setup.ps1 index 8d54cf5c..024b874b 100644 --- a/profiles/DerGeret/Windows/Setup.ps1 +++ b/profiles/DerGeret/Windows/Setup.ps1 @@ -28,11 +28,11 @@ $Global:SetupConfigPostprocessor = { if ($order -eq 2) { $newOrder--; } else { - if ($order -ge $newIndex) { + if ($newOrder -lt 2) { $newOrder++; } - if ($order -lt 2) { + if ($newOrder -ge $newIndex) { $newOrder++; } } @@ -64,11 +64,11 @@ $Global:SetupConfigPostprocessor = { if ($partitionID -eq 2) { $newID--; } else { - if ($partitionID -ge $newIndex) { + if ($newID -lt 2) { $newID++; } - if ($partitionID -lt 2) { + if ($newID -ge $newIndex) { $newID++; } }