expand tilda before passing file name into chain import
This commit is contained in:
parent
de5d16eeac
commit
d7a2556292
@ -150,6 +150,11 @@ var DaemonCmd = &cli.Command{
|
||||
|
||||
chainfile := cctx.String("import-chain")
|
||||
if chainfile != "" {
|
||||
chainfile, err := homedir.Expand(chainfile)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := ImportChain(r, chainfile); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user