From 5b9f22eec2f8824dbc17140a57715d0a511cdeef Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 25 Jul 2023 12:39:45 +0200 Subject: [PATCH] Fix the output of the Nextcloud configuration file --- scripts/Windows/Scripts/Context.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 1e5deb77..d3b89e9b 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; @@ -304,7 +304,7 @@ class Context { }) | Set-Content ($this.GetNextcloudConfigFile()); Write-Information "New nextcloud config:"; - Write-Information (Get-Content $($this.GetNextcloudConfigFile())); + Write-Information (Get-Content $($this.GetNextcloudConfigFile()) | Out-String); Write-Information "Restarting Nextcloud"; Start-Process $nextcloudPath;