Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -505,12 +505,6 @@ Fix steps:
Pop-Location
}

# copy PowerShell host profile if Windows
if ($Environment.IsWindows)
{
Copy-Item -Path "$PSScriptRoot/src/powershell-win-core/Microsoft.PowerShell_profile.ps1" -Destination $publishPath -Force
}

if ($Environment.IsRedHatFamily) {
# add two symbolic links to system shared libraries that libmi.so is dependent on to handle
# platform specific changes. This is the only set of platforms needed for this currently
Expand Down
10 changes: 0 additions & 10 deletions src/powershell-win-core/Microsoft.PowerShell_profile.ps1

This file was deleted.

14 changes: 0 additions & 14 deletions test/powershell/engine/Module/ModulePath.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,4 @@ Describe "SxS Module Path Basic Tests" -tags "CI" {
$paths -contains $customeModules | Should Be $true
}

It "Default PowerShell profile appends Windows PowerShell PSModulePath only on Windows" {

$psmodulepath = & $powershell -nologo -c '$env:PSModulePath'

if ($IsWindows)
{
$psmodulepath[0] | Should Match "Warning" # for Windows, there is a warning that path being appended
$psmodulepath[1] | Should Match "WindowsPowerShell"
}
else
{
$psmodulepath[0] | Should Not Match "WindowsPowerShell"
}
}
}