From 585fb4bdfc8fad395cf180c01a42ec473d04653b Mon Sep 17 00:00:00 2001 From: W192547975 <138874985+W192547975@users.noreply.github.com> Date: Fri, 1 Dec 2023 21:44:01 +0800 Subject: [PATCH] Update install.go Fix bug --- core/install.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/install.go b/core/install.go index 01fc30f..05407eb 100644 --- a/core/install.go +++ b/core/install.go @@ -32,7 +32,6 @@ func install() { gLog.Println(LvERROR, "cd error:", err) return } - uninstall() // save config file parseParams("install") @@ -43,7 +42,7 @@ func install() { // copy files src, errFiles := os.Open(binPath) // can not use args[0], on Windows call openp2p is ok(=openp2p.exe) if errFiles != nil { - gLog.Printf(LvERROR, "os.Open %s error:%s", os.Args[0], errFiles) + gLog.Printf(LvERROR, "os.Open %s error:%s", binPath, errFiles) return }