Skip to content

Commit 19d78fc

Browse files
committed
Always expand target
Fixes #74 Fixes #95
1 parent cb828d0 commit 19d78fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,12 @@ func SetGlobalOptionsFromConfig(config *Config, parser *flags.Parser, opts *Flag
230230
opts.Tag = update("", cli.Tag)
231231
opts.Prerelease = update(false, cli.Prerelease)
232232
opts.Source = update(config.Global.Source, cli.Source)
233-
targ, err := home.Expand(config.Global.Target)
233+
targ := update(config.Global.Target, cli.Output)
234+
expanded, err := home.Expand(targ)
234235
if err != nil {
235236
return err
236237
}
237-
opts.Output = update(targ, cli.Output)
238+
opts.Output = expanded
238239
opts.System = update(config.Global.System, cli.System)
239240
opts.ExtractFile = update("", cli.ExtractFile)
240241
opts.All = update(config.Global.All, cli.All)

0 commit comments

Comments
 (0)