91a1370e10
Fixed $null comparison for consistency and corrected a code typo, but I'm **unsure if it introduces new issues or solves them**.
`$sudoOffet` ➡️ `$sudoOffset`
```
$sudoOffset = $cmdLine.IndexOf($MI.InvocationName)
$cmdLineWithoutScript = $cmdLine.SubString($sudoOffset + 5) # Typo was here
```
Also removed unused line of code `$iam = $MI.MyCommand.ToString()`. This might be used for debugging?
|
||
---|---|---|
.. | ||
sudo.ps1 |