Fix error when testing for admin on PSCore Linux. - #312
Conversation
This is somewhat experimental but the short-circuiting *if* statement should cause all existing users of Windows PowerShell (not core) to go through the old code path. Only PS Core users on LInux/OSX will go through the "id -u" path. I have tested this on Ubuntu but I don't have a Mac so can't test there.
No worries. Feel free to use |
|
@dahlbyk Thanks. Is that |
Yep, many commands (
👉 #330 |
This is somewhat experimental but the short-circuiting if statement should cause all existing users of Windows PowerShell (not core) to go through the old code path. Only PS Core users on LInux/OSX will go through the "id -u" path. I have tested this on Ubuntu but I don't have a Mac so can't test there.
Sorry about the whitespace changes. I have VSCode configured to trim trailing whitespace.