From a6e6d77c97b46097994cae2d9166696ff2d826f1 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 3 Jul 2023 22:54:30 +0200 Subject: [PATCH] Refactor the determination of the nextcloud path --- scripts/Windows/Scripts/Context.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index da07fd4f..8803a8a5 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -255,7 +255,7 @@ class Context { } $nextcloudProcess = Get-Process nextcloud; - $nextcloudPath = $nextcloudProcess.Path; + $nextcloudPath = [string]$nextcloudProcess[0].Path; $nextcloudProcess | Stop-Process -Force; $accountSectionEntered = $false;