Browse Source

Update WinX64.yml

Ruben 1 year ago
parent
commit
0874c49c15
1 changed files with 5 additions and 1 deletions
  1. 5 1
      .github/workflows/WinX64.yml

+ 5 - 1
.github/workflows/WinX64.yml

@@ -78,7 +78,11 @@ jobs:
             Remove-Item -Path $pdbPath -Force
           }
 
-          Rename-Item -Path $outputPath -NewName $outputPath.Replace(" ","")
+          # Only rename if there are spaces in the path
+          if ($outputPath -match " ") {
+            $newOutputPath = $outputPath.Replace(" ","")
+            Rename-Item -Path $outputPath -NewName $newOutputPath
+          }
         shell: pwsh
 
       # Step 8: Clean up temp directory