소스 검색

fix inverse logic in verbose mode ./dot.ps1

Daniel Sheffield 2 주 전
부모
커밋
a2c060cdc3
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      park.ps1

+ 1 - 2
park.ps1

@@ -86,10 +86,9 @@ if ($Stow -or $Restow) {
                 if (-not $Simulate) {
                     throw "Path '$targetDir' exists but is not a directory."
                 }
-            } else {
-                Write-Verbose "Creating dir: $targetDir"
             }
         } else {
+            Write-Verbose "Creating dir: $targetDir"
             if (-not $Simulate) {
                 New-Item -ItemType Directory -Path $targetDir -Force | Out-Null
             }