Skip to content

Commit

Permalink
Make ensure directory do a try and create rather than fail if cannot …
Browse files Browse the repository at this point in the history
…be created
  • Loading branch information
BlythMeister committed Aug 1, 2024
1 parent 20afe45 commit de23094
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Scripts/deployHelp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,8 @@ function EnsurePath([string]$name)

if ((Test-Path $path) -eq $False)
{
if($path.StartsWith("\\"))
{
Write-Warning "Path '$path' does not exist or cannot be found by deployment user"
}
else
{
md $path
}
Write-Host "Path '$path' does not exist, try to create"
New-Item -ItemType Directory -Path $path -ErrorAction Continue
}
}

Expand Down

0 comments on commit de23094

Please sign in to comment.