Fix in PowerShell build - The 7Zip tool download was giving two paths & thus break the build script

(cherry picked from commit a2e6da2491)
This commit is contained in:
Warren Buckley
2017-10-13 11:19:39 +01:00
committed by Sebastiaan Janssen
parent 4bd263e7bc
commit 5df4d3509d

View File

@@ -40,6 +40,7 @@ function Get-UmbracoBuildEnv
&$nuget install 7-Zip.CommandLine -OutputDirectory $path -Verbosity quiet
$dir = ls "$path\7-Zip.CommandLine.*" | sort -property Name -descending | select -first 1
$file = ls -path "$dir" -name 7za.exe -recurse
$file = ls -path "$dir" -name 7za.exe -recurse | select -first 1 #A select is because there is tools\7za.exe & tools\x64\7za.exe
mv "$dir\$file" $sevenZip
Remove-Directory $dir
}