We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca03809 commit 778dc2cCopy full SHA for 778dc2c
1 file changed
src/prescript.ps1
@@ -19,8 +19,9 @@ Write-Host '::group::Prescript - Execution'
19
20
# Check if the prescript is a path to an existing file
21
if (Test-Path -Path $prescript -PathType Leaf) {
22
- Write-Host "Executing prescript from file: [$prescript]"
23
- & $prescript
+ $scriptPath = Resolve-Path -Path $prescript
+ Write-Host "Executing prescript from file: [$scriptPath]"
24
+ & $scriptPath
25
} else {
26
Write-Host 'Executing inline prescript'
27
# Use ScriptBlock::Create for safer execution than Invoke-Expression
0 commit comments