Change order of operations when editing sync

This commit is contained in:
Manuel Thalmann 2023-07-03 00:59:11 +02:00
parent 3644e43d76
commit 77a9287238

View file

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