mirror of https://github.com/gophish/gophish
Merge 7670e8dbc0
into 9561846979
commit
4005576c43
13
gophish.go
13
gophish.go
|
@ -59,12 +59,15 @@ var (
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// Load the version
|
// Load the version
|
||||||
|
version := os.Getenv("GOPHISH_VERSION")
|
||||||
version, err := ioutil.ReadFile("./VERSION")
|
if version == "" {
|
||||||
if err != nil {
|
versionBytes, err := ioutil.ReadFile("./VERSION")
|
||||||
log.Fatal(err)
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
version = string(versionBytes)
|
||||||
}
|
}
|
||||||
kingpin.Version(string(version))
|
kingpin.Version(version)
|
||||||
|
|
||||||
// Parse the CLI flags and load the config
|
// Parse the CLI flags and load the config
|
||||||
kingpin.CommandLine.HelpFlag.Short('h')
|
kingpin.CommandLine.HelpFlag.Short('h')
|
||||||
|
|
Loading…
Reference in New Issue