We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a281eca + 7f295d3 commit c3f148eCopy full SHA for c3f148e
main.go
@@ -42,7 +42,11 @@ var migrations = []gomigrate.Migration{
42
func GetIpfsDir() (string, error) {
43
ipfspath := os.Getenv("IPFS_PATH")
44
if ipfspath != "" {
45
- return ipfspath, nil
+ expandedPath, err := homedir.Expand(ipfspath)
46
+ if err != nil {
47
+ return "", err
48
+ }
49
+ return expandedPath, nil
50
}
51
52
home, err := homedir.Dir()
0 commit comments