We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f65dc6d commit 8507d0aCopy full SHA for 8507d0a
profile.ps1
@@ -43,7 +43,7 @@ if (!$LastStartup -or $CurrentVersion -ne $LastStartup.Version) {
43
Write-Information "Version has changed from $($LastStartup.Version ?? 'None') to $CurrentVersion"
44
if ($LastStartup) {
45
$LastStartup.Version = $CurrentVersion
46
- $LastStartup | Add-Member -MemberType NoteProperty -Name 'PSVersion' -Value $PSVersionTable.PSVersion.ToString()
+ $LastStartup | Add-Member -MemberType NoteProperty -Name 'PSVersion' -Value $PSVersionTable.PSVersion.ToString() -Force
47
} else {
48
$LastStartup = [PSCustomObject]@{
49
PartitionKey = 'Version'
0 commit comments