1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2025-01-24 07:38:34 +00:00
Chrissy LeMaire c9249dbe0b
fix(pwsh): replace Get-Error with $error[0] (#2873)
Get-Error does not exist in all versions of PowerShell, and attempting to use it on machines where it does not exist pollutes $error. Someone may be tempted to use -ErrorAction Ignore but since the command does not exist, it still ends up in $error

This is a dual bug fix because it actually gets errors on all machines now and it does not pollute $error.
2021-07-13 16:31:14 -04:00
..
2021-07-04 15:32:58 -04:00
2020-09-28 16:38:50 -04:00