Преглед изворни кода

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
             }