From d8b815e510b3139995251216cf85cb113ed0b23b Mon Sep 17 00:00:00 2001 From: "Mr.k" Date: Sat, 31 Aug 2024 09:55:18 +0300 Subject: [PATCH] Restore 'workingdir' variable when using '-Run' Parameter with 'Compile.ps1' Script --- Compile.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Compile.ps1 b/Compile.ps1 index 94acd778..75998956 100644 --- a/Compile.ps1 +++ b/Compile.ps1 @@ -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 }