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;
|
||||
}
|
||||
|
||||
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:";
|
||||
|
|
Loading…
Reference in a new issue