Commit Graph

2 Commits

Author SHA1 Message Date
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
Mike Griese 64b27e4425 Initial commit to standup Sudo for Windows repo
Includes standard docs for a repo: README, LICENSE, issue templates, etc.
Also includes `sudo.ps1`, for collaborating on in the open.
2024-02-08 10:41:07 -06:00