You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Warning'Parameter -Destination is set to a custom path. We assume you know what you are doing, so it will not automatically be added to your Profile but will be added to PSModulePath. Set -NoProfileUpdate to suppress this message in the future.'
58
59
}
59
60
$NoProfileUpdate=$true
60
61
}
61
62
if (-not$NoPSModulePathUpdate) {
62
-
$pathUpdateMessage="Update PSModulePath $($NoProfileUpdate?'' : 'and CurrentUserAllHosts profile ')to include $Destination"
63
-
if (-not$PSCmdlet.ShouldProcess($pathUpdateMessage,'','')) { return }
$ProfileLine="`$env:PSModulePath += [System.IO.Path]::PathSeparator + $Destination #Added by ModuleFast. If you dont want this, add -NoProfileUpdate to your command."
1100
+
$ProfileLine="`$env:PSModulePath += [System.IO.Path]::PathSeparator + $Destination #Added by ModuleFast. DO NOT EDIT THIS LINE. If you dont want this, add -NoProfileUpdate to your command."
1099
1101
if ((Get-Content-Raw $myProfile) -notmatch [Regex]::Escape($ProfileLine)) {
1100
1102
Write-Verbose"Adding $Destination to profile $myProfile"
1101
1103
Add-Content-Path $myProfile-Value $ProfileLine
1102
1104
} else {
1103
-
Write-Verbose"$DestinationPSModulePath addition detected in profile, skipping..."
1105
+
Write-Verbose"PSModulePath $Destinationalready in profile, skipping..."
1104
1106
}
1105
1107
}
1106
1108
}
@@ -1237,6 +1239,11 @@ function ConvertTo-AuthenticationHeaderValue ([PSCredential]$Credential) {
0 commit comments