mirror of
https://github.com/axllent/mailpit.git
synced 2024-12-26 22:56:43 +02:00
Chore: Make symlink detection more specific to contain "sendmail" in the name (#391)
This commit is contained in:
parent
bc23e6336d
commit
5666462f29
5
main.go
5
main.go
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user