Skip to content

Commit

Permalink
Chore: Make symlink detection more specific to contain "sendmail" in …
Browse files Browse the repository at this point in the history
…the name (#391)
  • Loading branch information
fasterit authored Nov 22, 2024
1 parent bc23e63 commit 5666462
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ func main() {
}

// running directly
if normalize(filepath.Base(exec)) == normalize(filepath.Base(os.Args[0])) {
if normalize(filepath.Base(exec)) == normalize(filepath.Base(os.Args[0])) ||
! strings.Contains(filepath.Base(os.Args[0]), "sendmail") {
cmd.Execute()
} else {
// symlinked
// symlinked as "*sendmail*"
sendmail.Run()
}
}
Expand Down

0 comments on commit 5666462

Please sign in to comment.