From c2691842172d36fc6d8965de0b12ccfb0e199408 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Tue, 31 Jan 2023 18:05:31 +0100 Subject: [PATCH] ensure that settings.json is a file --- dist/win/contrib/version170-migrate-settings.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/win/contrib/version170-migrate-settings.ps1 b/dist/win/contrib/version170-migrate-settings.ps1 index a88912ef6..015fd6526 100644 --- a/dist/win/contrib/version170-migrate-settings.ps1 +++ b/dist/win/contrib/version170-migrate-settings.ps1 @@ -18,7 +18,7 @@ Get-ChildItem $profileList | ForEach-Object { $_.GetValue("ProfileImagePath") } } } | ForEach-Object { $settingsPath = "$_\AppData\Roaming\Cryptomator\settings.json" - if(!(Test-Path -Path $settingsPath)) { + if(!(Test-Path -Path $settingsPath -PathType Leaf)) { #No settings file, nothing to do. return; }