浏览代码

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
             }