Fix format of manipulated nextcloud config
This commit is contained in:
parent
0609221a8e
commit
0d11a67b44
1 changed files with 8 additions and 7 deletions
|
@ -291,18 +291,19 @@ class Context {
|
||||||
$accountSectionEntered = $true;
|
$accountSectionEntered = $true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if ($line -eq "" -and $accountSectionEntered) {
|
||||||
($line -eq "" -and $accountSectionEntered) -or
|
|
||||||
(
|
|
||||||
(-not $accountSectionLeft) -and
|
|
||||||
($line -ne "") -and
|
|
||||||
($i -eq ($oldContent.Count - 1))
|
|
||||||
)) {
|
|
||||||
$accountSectionLeft = $true;
|
$accountSectionLeft = $true;
|
||||||
$newSettings;
|
$newSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
$line;
|
$line;
|
||||||
|
|
||||||
|
if (
|
||||||
|
(-not $accountSectionLeft) -and
|
||||||
|
($i -eq ($oldContent.Count - 1)))
|
||||||
|
{
|
||||||
|
$newSettings;
|
||||||
|
}
|
||||||
}) | Set-Content ($this.GetNextcloudConfigFile());
|
}) | Set-Content ($this.GetNextcloudConfigFile());
|
||||||
|
|
||||||
Write-Information "New nextcloud config:";
|
Write-Information "New nextcloud config:";
|
||||||
|
|
Loading…
Reference in a new issue