dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

[Bug]: Fix $PSDefaultParameterValues from Credentials in $PROFILE

Open jimbrig opened this issue 2 years ago • 0 comments

Small fix to Line 204 of profile.ps1:

  • [x] Changed $PSDefaultCredentials to $PSDefaultParameterValues

Before would throw error:

InvalidOperation: 
Line |
  10 |          $PSDefaultCredentials[$PSItem.Name] = $PSItem.Value
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot index into a null array.
InvalidOperation:
Line |
  10 |          $PSDefaultCredentials[$PSItem.Name] = $PSItem.Value
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot index into a null array.

jimbrig avatar Nov 08 '23 00:11 jimbrig