Skip to content

Commit

Permalink
feat: expand path
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakiyo committed Aug 28, 2023
1 parent eaaa793 commit 5a10d81
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion where/where.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,9 @@ func Config() string {

// set root to a path
func SetRoot(path string) {
root = path
f, err := homedir.Expand(path)
if err != nil {
log.Fatal("Unexpected error when expanding root path", "err", err)
}
root = f
}

0 comments on commit 5a10d81

Please # to comment.