Restore 'workingdir' variable when using '-Run' Parameter with 'Compile.ps1' Script

This commit is contained in:
Mr.k 2024-08-31 09:55:18 +03:00
parent d65bac4a27
commit d8b815e510
No known key found for this signature in database

View File

@ -121,7 +121,7 @@ try {
Write-Progress -Activity "Validating" -Completed
if ($run) {
$script = "& '$scriptname' $Arguments"
$script = "& '$workingdir\$scriptname' $Arguments"
$powershellcmd = if (Get-Command pwsh -ErrorAction SilentlyContinue) { "pwsh" } else { "powershell" }
$processCmd = if (Get-Command wt.exe -ErrorAction SilentlyContinue) { "wt.exe" } else { $powershellcmd }