sudo/scripts
Alex 91a1370e10
Fixed $null check for consistency, variable "$sudoOffset" typo (#17)
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?
2024-02-09 11:25:02 -06:00
..
sudo.ps1 Fixed $null check for consistency, variable "$sudoOffset" typo (#17) 2024-02-09 11:25:02 -06:00