Skip to content

Commit 7191ebe

Browse files
Fix dsc installation
1 parent 2ef6a5b commit 7191ebe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.ci/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ jobs:
100100
$version = '${{ parameters.DSCVersion }}'
101101
$packageName = "DSC-$version"
102102
$ext = 'tar.gz'
103+
$executableName = 'dsc'
104+
$executableExt = if ($IsWindows) { '.exe' } else { '' }
103105
104106
$uri = if ($IsWindows) {
105107
$ext = 'zip'
@@ -127,7 +129,9 @@ jobs:
127129
tar -xzf $destPath -C $env:AGENT_TEMPDIRECTORY
128130
}
129131
130-
$executable = Get-ChildItem -Path $destPath -File -Recurse | Where-Object { $_.Name -eq 'dsc' } | Select-Object -First 1
132+
$executableFileName = $executableName + $executableExt
133+
134+
$executable = Get-ChildItem -Path $destPath -File -Recurse -Verbose | Where-Object { $_.Name -eq $executableFileName } | Select-Object -First 1
131135
132136
if (-not $executable) {
133137
throw "Could not find dsc executable in the downloaded package"

0 commit comments

Comments
 (0)