Change order of operations when editing sync
This commit is contained in:
parent
3644e43d76
commit
77a9287238
1 changed files with 4 additions and 3 deletions
|
@ -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())) | `
|
||||||
|
|
Loading…
Reference in a new issue