This commit is contained in:
Héctor Hurtado
2020-04-06 18:02:29 +02:00
parent 73ef493f04
commit e6e25f25c7
5 changed files with 56 additions and 18 deletions
+1 -2
View File
@@ -55,9 +55,8 @@ var ServerCmd = &cobra.Command{
os.Setenv("KAPOW_CONTROL_URL", "http://"+sConf.DataBindAddr)
}
go server.StartServer(sConf)
server.StartServer(sConf)
// start sub shell + ENV(KAPOW_CONTROL_URL)
if len(args) > 0 {
powfile := args[0]
_, err := os.Stat(powfile)