Skip to content

Commit

Permalink
Only make directory if not a UNC path
Browse files Browse the repository at this point in the history
  • Loading branch information
BlythMeister committed Jul 31, 2024
1 parent fcacac0 commit 1efcfec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Scripts/deployHelp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,14 @@ function EnsurePath([string]$name)

if ((Test-Path $path) -eq $False)
{
md $path
if($path.StartsWith("\\")
{
Write-Warning "Path '$path' does not exist or cannot be found by deployment user"
}
else
{
md $path
}
}
}

Expand Down

0 comments on commit 1efcfec

Please sign in to comment.