From 40ceab479aca95b4ae218c8956e3dfb42e7d9939 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 8 Jul 2023 23:35:58 +0200 Subject: [PATCH] Fix non-functioning statement --- profiles/DerGeret/Windows/Setup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/DerGeret/Windows/Setup.ps1 b/profiles/DerGeret/Windows/Setup.ps1 index 73db9a8f..03951c55 100644 --- a/profiles/DerGeret/Windows/Setup.ps1 +++ b/profiles/DerGeret/Windows/Setup.ps1 @@ -14,7 +14,7 @@ $Global:SetupConfigPostprocessor = { $newIndex = 2; $installationPartition.InnerText = "$($newIndex + 1)"; $partitionCreations = $diskConfig.SelectSingleNode("./ua:CreatePartitions", $namespace); - $winPartition = ($partitionCreations.SelectNodes("./ua:CreatePartition", $namespace) | Select-Object -Last 1)[0]; + $winPartition = ($partitionCreations.SelectNodes("./ua:CreatePartition", $namespace) | Select-Object -Last 1); $newPartition = $winPartition.CloneNode($true); $offset = 0;