소스 검색

ensure that settings.json is a file

Armin Schrenk 2 년 전
부모
커밋
c269184217
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
     }