Change order of operations when editing sync

This commit is contained in:
Manuel Thalmann 2023-07-03 00:59:11 +02:00
parent 72a943a784
commit 430dc33ed5

View file

@ -225,9 +225,6 @@ class Context {
[void] AddNextcloudSync([string] $localPath, [string] $targetPath, [bool] $virtualFiles) {
$pattern = "^\d+\\Folders(?:WithPlaceholders)?\\(\d+)";
$nextcloudProcess = Get-Process nextcloud;
$nextcloudPath = $nextcloudProcess.Path;
$nextcloudProcess | Stop-Process -Force;
$folderID = (
Get-Content $($this.GetNextcloudConfigFile()) | `
@ -244,6 +241,10 @@ class Context {
$configName += "WithPlaceholders";
}
$nextcloudProcess = Get-Process nextcloud;
$nextcloudPath = $nextcloudProcess.Path;
$nextcloudProcess | Stop-Process -Force;
$accountSectionEntered = $false;
(Get-Content $($this.GetNextcloudConfigFile())) | `