Skip to content

Commit 8507d0a

Browse files
committed
fix ps version prop
1 parent f65dc6d commit 8507d0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

profile.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if (!$LastStartup -or $CurrentVersion -ne $LastStartup.Version) {
4343
Write-Information "Version has changed from $($LastStartup.Version ?? 'None') to $CurrentVersion"
4444
if ($LastStartup) {
4545
$LastStartup.Version = $CurrentVersion
46-
$LastStartup | Add-Member -MemberType NoteProperty -Name 'PSVersion' -Value $PSVersionTable.PSVersion.ToString()
46+
$LastStartup | Add-Member -MemberType NoteProperty -Name 'PSVersion' -Value $PSVersionTable.PSVersion.ToString() -Force
4747
} else {
4848
$LastStartup = [PSCustomObject]@{
4949
PartitionKey = 'Version'

0 commit comments

Comments
 (0)