Fix format of manipulated nextcloud config

This commit is contained in:
Manuel Thalmann 2023-07-25 12:42:04 +02:00
parent 0609221a8e
commit 0d11a67b44

View file

@ -291,18 +291,19 @@ class Context {
$accountSectionEntered = $true;
}
if (
($line -eq "" -and $accountSectionEntered) -or
(
(-not $accountSectionLeft) -and
($line -ne "") -and
($i -eq ($oldContent.Count - 1))
)) {
if ($line -eq "" -and $accountSectionEntered) {
$accountSectionLeft = $true;
$newSettings;
}
$line;
if (
(-not $accountSectionLeft) -and
($i -eq ($oldContent.Count - 1)))
{
$newSettings;
}
}) | Set-Content ($this.GetNextcloudConfigFile());
Write-Information "New nextcloud config:";