Commit 3e8fb915 authored by szh's avatar szh

upate reset node

parent 528064a3
...@@ -9,7 +9,6 @@ import ( ...@@ -9,7 +9,6 @@ import (
"os" "os"
"os/exec" "os/exec"
"time" "time"
"path"
) )
var ( var (
...@@ -289,7 +288,7 @@ func resetNode() error { ...@@ -289,7 +288,7 @@ func resetNode() error {
if isrun { if isrun {
return errors.New("bty is running") return errors.New("bty is running")
} }
err = os.RemoveAll(fmt.Sprintf("%s/datadir", path.Dir(btyPath))) err = os.RemoveAll(fmt.Sprintf("%s/datadir", btyPath))
if err != nil { if err != nil {
return err return err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment