Commit 9398fed9 authored by szh's avatar szh

解压到指定目录

parent e4764dcc
...@@ -532,7 +532,7 @@ func AutoUpdatePai() error { ...@@ -532,7 +532,7 @@ func AutoUpdatePai() error {
return err return err
} }
//解压缩文件 //解压缩文件
tar := exec.Command("tar","-xvf",name,"../") tar := exec.Command("tar","-xvf",name,"-C","../")
err = tar.Start() err = tar.Start()
if err != nil { if err != nil {
tlog.Error("tar","err",err) tlog.Error("tar","err",err)
......
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