mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
c9249dbe0b
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.