mirror of
https://github.com/Luzifer/elb-instance-status.git
synced 2024-11-08 05:50:06 +00:00
Execute commands using bash -e -o pipefail
This commit is contained in:
parent
337bffcf0c
commit
e498f13bbd
1 changed files with 1 additions and 1 deletions
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 a new issue