Skip to content

Commit 3f8398c

Browse files
author
Justin Grote
committed
Fix profile line
1 parent 0e4d910 commit 3f8398c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ModuleFast.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1118,7 +1118,7 @@ function Add-DestinationToPSModulePath {
11181118
New-Item -ItemType File -Path $myProfile -Force | Out-Null
11191119
}
11201120

1121-
[string]$profileLine = "if ('$Destination' -notin (`$env:PSModulePath.split([IO.Path]::PathSeparator))) { `$env:PSModulePath = '$Destination' + `$([IO.Path]::PathSeparator + '$Destination') } #Added by ModuleFast. DO NOT EDIT THIS LINE. If you do not want this, add -NoProfileUpdate to Install-ModuleFast or add the default destination to your powershell.config.json or to your PSModulePath another way."
1121+
[string]$profileLine = "if ('$Destination' -notin (`$env:PSModulePath.split([IO.Path]::PathSeparator))) { `$env:PSModulePath = '$Destination' + `$([IO.Path]::PathSeparator + `$env:PSModulePath) } #Added by ModuleFast. DO NOT EDIT THIS LINE. If you do not want this, add -NoProfileUpdate to Install-ModuleFast or add the default destination to your powershell.config.json or to your PSModulePath another way."
11221122
if ((Get-Content -Raw $myProfile) -notmatch [Regex]::Escape($ProfileLine)) {
11231123
if (-not $PSCmdlet.ShouldProcess($myProfile, "Allow ModuleFast to work by adding $Destination to your PSModulePath on startup by appending to your CurrentUserAllHosts profile. If you do not want this, add -NoProfileUpdate to Install-ModuleFast or add the specified destination to your powershell.config.json or to your PSModulePath another way.")) { return }
11241124
Write-Verbose "Adding $Destination to profile $myProfile"

0 commit comments

Comments
 (0)