cmd: make sure to have 'testnet' create the data directory for nonvals (#3409)

Fixes #3408
This commit is contained in:
srmo
2019-03-11 23:06:03 +04:00
committed by Anton Kaliaev
parent 3035572034
commit 676212fa8f
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -115,6 +115,12 @@ func testnetFiles(cmd *cobra.Command, args []string) error {
return err
}
err = os.MkdirAll(filepath.Join(nodeDir, "data"), nodeDirPerm)
if err != nil {
_ = os.RemoveAll(outputDir)
return err
}
initFilesWithConfig(config)
}