修改集成部分执行脚本
This commit is contained in:
parent
d4877d283d
commit
55eaea79be
|
|
@ -61,8 +61,7 @@ func RunCID(c *gin.Context) {
|
|||
name = names[0]
|
||||
|
||||
//脚本内容
|
||||
scriptContent := `#!/bin/bash
|
||||
TARGET_DIR = ` + proto.CID_BASE_DIR + `workspace/` + name + `
|
||||
scriptContent := `TARGET_DIR = ` + proto.CID_BASE_DIR + `workspace/` + name + `
|
||||
if [ ! -d $TARGET_DIR ]; then
|
||||
git clone ` + cid.Url + `
|
||||
cd $TARGET_DIR
|
||||
|
|
@ -193,8 +192,7 @@ func CIDCallback(c *gin.Context) {
|
|||
name := strs[len(strs)-1]
|
||||
names := strings.Split(name, ".")
|
||||
name = names[0]
|
||||
scriptContent := `#!/bin/bash
|
||||
TARGET_DIR = ` + proto.CID_BASE_DIR + `workspace/` + name + `
|
||||
scriptContent := `TARGET_DIR = ` + proto.CID_BASE_DIR + `workspace/` + name + `
|
||||
if [ ! -d $TARGET_DIR ]; then
|
||||
git clone ` + res.Url + `
|
||||
cd $TARGET_DIR
|
||||
|
|
|
|||
Loading…
Reference in New Issue