mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
fix: close tmp key file
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
parent
7bb3fb1481
commit
f7ac69717e
1 changed files with 1 additions and 0 deletions
|
|
@ -134,6 +134,7 @@ func createKeyPair() (string, string) {
|
|||
defer os.Remove(tmpKey.Name())
|
||||
defer os.Remove(tmpKey.Name() + ".pub")
|
||||
defer os.Remove(tmpKey.Name() + ".sec")
|
||||
defer tmpKey.Close()
|
||||
cmd := exec.Command("signify", "-G", "-n", "-p", tmpKey.Name()+".pub", "-s", tmpKey.Name()+".sec")
|
||||
if output, err := cmd.CombinedOutput(); err != nil {
|
||||
panic(fmt.Sprintf("could not verify the file: %v, output: \n%s", err, output))
|
||||
|
|
|
|||
Loading…
Reference in a new issue