Commit fc416731 authored by ligaishun's avatar ligaishun

Update process.go

parent 92a092da
...@@ -411,9 +411,8 @@ func Preprocessing(){//判断密钥对是否存在,存在则删除 ...@@ -411,9 +411,8 @@ func Preprocessing(){//判断密钥对是否存在,存在则删除
func cp(src,dst string,){//复制文件并赋予执行权限 func cp(src,dst string,){//复制文件并赋予执行权限
cp:=exec.Command("cp","-rf",src,dst) cp:=exec.Command("cp","-rf",src,dst)
fmt.Println(cp.String()) os.Chmod(src,0755)
fmt.Println(os.Chmod(src,0755)) cp.Run()
fmt.Println(cp.Run())
} }
func MVScripts(src,dst string){//Absolute Path func MVScripts(src,dst string){//Absolute Path
path,err:=os.Getwd() path,err:=os.Getwd()
......
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