Explorar o código

ensure that settings.json is a file

Armin Schrenk %!s(int64=2) %!d(string=hai) anos
pai
achega
c269184217
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dist/win/contrib/version170-migrate-settings.ps1

+ 1 - 1
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;
     }