mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-11 04:45:57 +03:00
Don't fail if logs directory exists already (#10423)
changelog_begin changelog_end Co-authored-by: Andreas Herrmann <andreas.herrmann@tweag.io>
This commit is contained in:
parent
7c88b56e16
commit
fe1b642e02
@ -14,7 +14,11 @@ if (!(Test-Path .\.bazelrc.local)) {
|
||||
|
||||
$ARTIFACT_DIRS = if ("$env:BUILD_ARTIFACTSTAGINGDIRECTORY") { $env:BUILD_ARTIFACTSTAGINGDIRECTORY } else { Get-Location }
|
||||
|
||||
mkdir -p ${ARTIFACT_DIRS}/logs
|
||||
if (!(Test-Path ${ARTIFACT_DIRS}/logs)) {
|
||||
mkdir -p ${ARTIFACT_DIRS}/logs
|
||||
} elseif (Test-Path ${ARTIFACT_DIRS}/logs -PathType Leaf) {
|
||||
throw ("Cannot create directory '${ARTIFACT_DIRS}/logs'. Conflicting file.")
|
||||
}
|
||||
|
||||
# If a previous build was forcefully terminated, then stack's lock file might
|
||||
# not have been cleaned up properly leading to errors of the form
|
||||
|
Loading…
Reference in New Issue
Block a user