Skip to content

Commit f91968c

Browse files
niheavenchawyehsu
andauthored
fix(install): let pathes in 'env_add_path' be added ascendantly (#3788)
Co-Authored-By: Chawye Hsu <chawyehsu@hotmail.com>
1 parent eada459 commit f91968c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/install.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,8 @@ function find_dir_or_subdir($path, $dir) {
972972

973973
function env_add_path($manifest, $dir, $global, $arch) {
974974
$env_add_path = arch_specific 'env_add_path' $manifest $arch
975+
# GH-3785: Add path in ascending order.
976+
[Array]::Reverse($env_add_path)
975977
$env_add_path | Where-Object { $_ } | ForEach-Object {
976978
$path_dir = Join-Path $dir $_
977979

0 commit comments

Comments
 (0)