sunty
2020-04-15 326504269cba6ef13620e140c00dae7088d5f5dd
fix get line
1个文件已修改
2 ■■■ 已修改文件
controllers/swfsControllers.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/swfsControllers.go
@@ -213,7 +213,7 @@
//获取查找内容当前行内容
func GetNowLineContent(filePath string, searchContent string) string {
    scriptStr := "cat" + filePath + "| grep " + searchContent
    scriptStr := "cat " + filePath + "| grep " + searchContent
    fmt.Println("scriptStr: ", scriptStr)
    return strings.Split(util.RunScript(scriptStr), "\n")[0]
}