mirror of
https://github.com/Luzifer/elb-instance-status.git
synced 2024-09-18 22:52:58 +00:00
Execute commands using bash -e -o pipefail
This commit is contained in:
parent
337bffcf0c
commit
e498f13bbd
2
main.go
2
main.go
@ -137,7 +137,7 @@ func executeAndRegisterCheck(ctx context.Context, checkID string) {
|
||||
check := checks[checkID]
|
||||
start := time.Now()
|
||||
|
||||
cmd := exec.Command("/bin/bash", "-c", check.Command)
|
||||
cmd := exec.Command("/bin/bash", "-e", "-o", "pipefail", "-c", check.Command)
|
||||
cmd.Stderr = os.Stderr
|
||||
if cfg.Verbose {
|
||||
cmd.Stdout = os.Stdout
|
||||
|
Loading…
Reference in New Issue
Block a user