8000 Merge pull request #1823 from stonebig/master · winpython/winpython@48b5dbf · GitHub
[go: up one dir, main page]

Skip to content

Commit 48b5dbf

Browse files
authored
Merge pull request #1823 from stonebig/master
pwsh is not forgiving
2 parents 0a654cf + c63fab9 commit 48b5dbf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/github_workflows_build-all_3.14.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,6 @@ jobs:
154154
Write-Host "Downloading Pandoc from $env:pandoc_source"
155155
curl.exe -L -o $pandocZipPath $env:pandoc_source
156156
157-
# Create the target directory
158-
Write-Host "Creating directory $targetDir"
159-
mkdir $targetDir
160-
161157
# Create a temporary directory for extraction
162158
Write-Host "Creating temporary directory for extraction"
163159
mkdir -p $tempDir
@@ -168,7 +164,9 @@ jobs:
168164
169165
# Create the final target directory
170166
Write-Host "Creating final target directory: $targetDir"
171-
mkdir -p $targetDir
167+
if (-not (Test-Path -Path $targetDir)) {
168+
mkdir -p $targetDir
169+
}
172170
173171
# Find and copy only the pandoc.exe file
174172
Write-Host "Copying pandoc.exe to $targetDir"

0 commit comments

Comments
0 (0)
0