Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit f0621df

Browse files
committed
[agent]脚本代码生成文件名增强随机性
1 parent 50cf740 commit f0621df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

teaconfigs/agents/source_script.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func (this *ScriptSource) Execute(params map[string]string) (value interface{},
9898

9999
// 脚本
100100
if this.ScriptType == "code" {
101-
path, err := this.Generate(stringutil.Rand(16))
101+
path, err := this.Generate(stringutil.Rand(16) + stringutil.Md5(this.Code()))
102102
if err != nil {
103103
return nil, err
104104
}

0 commit comments

Comments
 (0)