Commit 4d3bba1a authored by szh's avatar szh

去除 \n

parent a20129d2
...@@ -54,8 +54,7 @@ func (p *Pai) SetPaiEnv() error { ...@@ -54,8 +54,7 @@ func (p *Pai) SetPaiEnv() error {
cmd.Stdout = &buf cmd.Stdout = &buf
cmd.Run() cmd.Run()
arch := buf.String() arch := buf.String()
strings.Replace(arch,"\n","",-1) p.Arch = 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