Commit a20129d2 authored by szh's avatar szh

replace \n to

parent f0bbd4c1
...@@ -53,7 +53,9 @@ func (p *Pai) SetPaiEnv() error { ...@@ -53,7 +53,9 @@ func (p *Pai) SetPaiEnv() error {
cmd := exec.Command("arch") cmd := exec.Command("arch")
cmd.Stdout = &buf cmd.Stdout = &buf
cmd.Run() cmd.Run()
p.Arch = buf.String() arch := buf.String()
strings.Replace(arch,"\n","",-1)
p.Arch = arch
return nil return nil
} }
......
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