mirror of
https://github.com/nxshock/gron.git
synced 2024-11-27 03:41:00 +05:00
Default config path = bin path + config name
This commit is contained in:
parent
2397f32bba
commit
96587792cc
@ -31,7 +31,7 @@ func initConfig() error {
|
||||
return fmt.Errorf("Usage: %s [path to config]", filepath.Base(ex))
|
||||
}
|
||||
|
||||
configFilePath := defaultConfigFilePath
|
||||
configFilePath := filepath.Join(filepath.Dir(ex), defaultConfigFileName)
|
||||
if len(os.Args) == 2 {
|
||||
configFilePath = os.Args[1]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user