fixing issue with build if output directory does not exist

This commit is contained in:
John Andrews
2022-04-19 16:46:07 +12:00
parent f38831d5ab
commit 8b954fc111

View File

@@ -14,12 +14,12 @@ if ([String]::IsNullOrEmpty($output)) {
$output = '../deploy';
}
$output = $output | Resolve-Path
if ([System.IO.Directory]::Exists($output) -eq $false) {
[System.IO.Directory]::Create($output)
}
$output = $output | Resolve-Path
Remove-Item Builds -Recurse -ErrorAction SilentlyContinue
$revision = (git rev-list --count --first-parent HEAD) -join "`n"