Skip to content

Commit

Permalink
Fix forbidigo
Browse files Browse the repository at this point in the history
  • Loading branch information
u5surf committed Oct 14, 2023
1 parent e66c4f8 commit b006ef7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions agent/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package config
import (
"fmt"
"io/fs"
"log"
"net"
"net/url"
"os"
Expand Down Expand Up @@ -411,9 +412,9 @@ func Application(cfg *Config) (*kingpin.Application, *string) {

app.Flag("version", "Show application version").Short('v').Action(func(*kingpin.ParseContext) error {
if *jsonF {
fmt.Println(version.FullInfoJSON())
log.Println(version.FullInfoJSON())
} else {
fmt.Println(version.FullInfo())
log.Println(version.FullInfo())
}
os.Exit(0)

Expand Down

0 comments on commit b006ef7

Please sign in to comment.