Skip to content

Commit

Permalink
Fix missing fallback code
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-ismailaj committed Apr 6, 2022
1 parent 3dc3ab8 commit c97f621
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/serf/command/agent/invoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ func invokeEventScript(logger *log.Logger, script string, self serf.Member, even
} else {
logger.Printf("[DEBUG] agent: Event '%s' script could not be read. Assuming no shebang present.",
event.EventType().String())
bin = "/bin/sh"
flag = "-c"
args = script
}
}

Expand Down

0 comments on commit c97f621

Please sign in to comment.