Skip to content

Commit 1666349

Browse files
author
jsirianni
committed
stdout works but only if --dryrun
1 parent a54d20e commit 1666349

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
log "github.com/sirupsen/logrus"
1515
)
1616

17-
const version string = "3.0.0"
17+
const version string = "3.0.1"
1818

1919
// flags
2020
var (
@@ -122,7 +122,7 @@ func initLog() {
122122
// initAlert sets the alert type. Default to slack if slackHookURL is set, for
123123
// backwards compatability. Fall back on stdout if slack is not set.
124124
func initAlert() (alert.Alert, error) {
125-
if dryrun {
125+
if alertType == "stdout" || dryrun {
126126
return alert.Stdout()
127127
}
128128

0 commit comments

Comments
 (0)