Skip to content

Commit

Permalink
fix: expand tilde char in destination
Browse files Browse the repository at this point in the history
  • Loading branch information
gszr committed Jul 19, 2023
1 parent 82498bb commit 749bc06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func (d *Dots) UnmarshalYAML(unmarshal func(interface{}) error) error {
d.FileOpts.Dir = tmpDots.FileOpts.Dir
for file, mapping := range tmpDots.Mappings {
mapping.Src = file
mapping.Dst = expandTilde(mapping.Dst)
if len(mapping.Dst) == 0 {
mapping.Dst = inferDestination(mapping.Src)
}
Expand Down

0 comments on commit 749bc06

Please sign in to comment.