mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix search in the new path
This commit is contained in:
+1
-1
@@ -3372,7 +3372,7 @@ function Install-AzCopy {
|
||||
}
|
||||
|
||||
function Find-AzCopy {
|
||||
$searchPaths = @('$(Agent.ToolsDirectory)\azcopy10', "C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy\AzCopy.exe", "C:\azcopy10\AzCopy.exe")
|
||||
$searchPaths = @('$(Agent.ToolsDirectory)\azcopy10\AzCopy.exe', "C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy\AzCopy.exe", "C:\azcopy10\AzCopy.exe")
|
||||
|
||||
foreach ($filter in $searchPaths) {
|
||||
$azCopy = Get-ChildItem -Path $filter -Recurse -ErrorAction SilentlyContinue | Select-Object -ExpandProperty FullName -First 1
|
||||
|
||||
Reference in New Issue
Block a user