Fix incorrect PowerShell profile path

This commit is contained in:
Manuel Thalmann 2024-03-20 22:45:02 +01:00
parent f18d0ab7d5
commit cdd6ef95c5

View file

@ -15,7 +15,7 @@ script:
$profileRoot = Split-Path -Parent $PROFILE; $profileRoot = Split-Path -Parent $PROFILE;
$profilePaths = @( $profilePaths = @(
"$profileRoot/profile.d/*.ps1", "$profileRoot/profile.d/*.ps1",
"{{ if eq .OS "windows" }}C:/ProgramData{{ else }}/etc/powershell{{ end }}/profile.d" "{{ if eq .OS "windows" }}C:/ProgramData{{ else }}/etc{{ end }}/powershell/profile.d"
); );
foreach ($profilePath in $profilePaths) { foreach ($profilePath in $profilePaths) {