Skip to content

Commit

Permalink
fix: 支持创建StandardAdapter时设置参数
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlkl committed Jul 12, 2023
1 parent 2da111c commit c11845c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions standard-adapter/pkg/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

// StandardAdapterExecutor 标准扫描器适配器
type StandardAdapterExecutor struct {
cmd string
workDir string
Cmd string
WorkDir string
}

// Execute 执行扫描
Expand Down Expand Up @@ -39,7 +39,7 @@ func (e StandardAdapterExecutor) Execute(_ *object.ToolConfig, file *os.File) (*
"--input", toolInputFile,
"--output", toolOutputFile,
}
err = util.ExecAndLog(e.cmd, args, e.workDir)
err = util.ExecAndLog(e.Cmd, args, e.WorkDir)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit c11845c

Please sign in to comment.