File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments