File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments