From 4075bab13ecf05c21b99d008b25ebb839c361ba4 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 25 Jul 2023 12:18:21 +0200 Subject: [PATCH] Try converting the manipulated nextcloud config to string --- scripts/Windows/Scripts/Context.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index a6a5da28..1e5deb77 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -283,7 +283,7 @@ class Context { $oldContent = Get-Content ($this.GetNextcloudConfigFile()); - $( + [string[]]$( for ($i = 0; $i -lt $oldContent.Count; $i++) { if ($_ -eq "[Accounts]") { $accountSectionEntered = $true;