Skip to content

Commit

Permalink
Always expand target
Browse files Browse the repository at this point in the history
Fixes #74
Fixes #95
  • Loading branch information
zyedidia committed Jun 6, 2024
1 parent cb828d0 commit 19d78fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,12 @@ func SetGlobalOptionsFromConfig(config *Config, parser *flags.Parser, opts *Flag
opts.Tag = update("", cli.Tag)
opts.Prerelease = update(false, cli.Prerelease)
opts.Source = update(config.Global.Source, cli.Source)
targ, err := home.Expand(config.Global.Target)
targ := update(config.Global.Target, cli.Output)
expanded, err := home.Expand(targ)
if err != nil {
return err
}
opts.Output = update(targ, cli.Output)
opts.Output = expanded
opts.System = update(config.Global.System, cli.System)
opts.ExtractFile = update("", cli.ExtractFile)
opts.All = update(config.Global.All, cli.All)
Expand Down

0 comments on commit 19d78fc

Please sign in to comment.