Fix format of manipulated nextcloud config

This commit is contained in:
Manuel Thalmann 2023-07-25 12:42:04 +02:00
parent 2f867edf2a
commit 971211246b

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:";