Skip to content

Commit cb828d0

Browse files
committed
Proper fallback to EGET_BIN if target not set
Fixes #100
1 parent ff09230 commit cb828d0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

config.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,6 @@ func InitializeConfig() (*Config, error) {
173173
config.Global.UpgradeOnly = false
174174
}
175175

176-
if !config.Meta.MetaData.IsDefined("global", "target") {
177-
cwd, _ := os.Getwd()
178-
config.Global.Target = cwd
179-
}
180-
181176
// set default repository values
182177
for name, repo := range config.Repositories {
183178

@@ -201,7 +196,7 @@ func InitializeConfig() (*Config, error) {
201196
repo.ShowHash = config.Global.ShowHash
202197
}
203198

204-
if !config.Meta.MetaData.IsDefined(name, "target") {
199+
if !config.Meta.MetaData.IsDefined(name, "target") && config.Global.Target != "" {
205200
repo.Target = config.Global.Target
206201
}
207202

0 commit comments

Comments
 (0)