diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 44244f08..712cbe3d 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -246,17 +246,17 @@ class Context { $accountSectionEntered = $false; - Get-Content $($this.GetNextcloudConfigFile()) | ` + (Get-Content $($this.GetNextcloudConfigFile())) | ` ForEach-Object { if ($_ -eq "[Accounts]") { $accountSectionEntered = $true; } if ($_ -eq "" -and $accountSectionEntered) { - [string]::Join( - "`n", - @( - "0\$configName\$folderID\localPath=$localPath", + [string]::Join( + "`n", + @( + "0\$configName\$folderID\localPath=$localPath", "0\$configName\$folderID\targetPath=$targetPath")); }