From a181a4533fa18b7e0fc40feb5bfa46630eb090c2 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 8 Jul 2023 23:25:22 +0200 Subject: [PATCH] Fix non-functioning command --- 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 af302337..73db9a8f 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)[0]; + $winPartition = ($partitionCreations.SelectNodes("./ua:CreatePartition", $namespace) | Select-Object -Last 1)[0]; $newPartition = $winPartition.CloneNode($true); $offset = 0;