wizzense / lab-automation

https://wizzense.com
0 stars 0 forks source link

Github CLI Verify Not working #39

Closed TaniumGod123 closed 2 months ago

TaniumGod123 commented 2 months ago

Kinda just reinstalls over and over again after running script, will do some work on verifying this shortly. should be an easy fix after a bit of research

TaniumGod123 commented 2 months ago

Fixed, turns out the Get-Command -Name gh -ErrorAction stuff returns an object instead of a boolean, so if you put it in a variable first to make sure its not null and then in an if statement it catches it correctly.