minor changes
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
|
||||
"github.com/spf13/viper"
|
||||
|
||||
"git.kplus.net.ua/yevhen/resource-scraper/helper/sugar"
|
||||
"git.kplus.net.ua/yevhen/resource-scraper/types/constant"
|
||||
)
|
||||
|
||||
@@ -16,6 +17,8 @@ func New() {
|
||||
configFilePath := viper.GetString(constant.FlagConfigFile)
|
||||
configName := filepath.Base(configFilePath)
|
||||
|
||||
sugar.DebugPath(configFilePath)
|
||||
|
||||
dir := filepath.Dir(configFilePath)
|
||||
if dir == configName && dir == "." {
|
||||
configName = "default"
|
||||
|
||||
Reference in New Issue
Block a user