mirror of
https://github.com/OliveTin/OliveTin
synced 2025-10-30 04:47:03 +00:00
fmt: code formatting
This commit is contained in:
@@ -318,7 +318,7 @@ func parseActionExec(values map[string]string, action *config.Action, entityPref
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
parsedArg = sv.ReplaceEntityVars(entityPrefix, parsedArg)
|
||||
parsedArgs[i] = parsedArg
|
||||
}
|
||||
|
||||
@@ -68,9 +68,9 @@ type ExecutionRequest struct {
|
||||
|
||||
logEntry *InternalLogEntry
|
||||
finalParsedCommand string
|
||||
execArgs []string
|
||||
useDirectExec bool
|
||||
executor *Executor
|
||||
execArgs []string
|
||||
useDirectExec bool
|
||||
executor *Executor
|
||||
}
|
||||
|
||||
// InternalLogEntry objects are created by an Executor, and represent the final
|
||||
@@ -413,14 +413,14 @@ func stepParseArgs(req *ExecutionRequest) bool {
|
||||
req.execArgs, err = parseActionExec(req.Arguments, req.Action, req.EntityPrefix)
|
||||
} else {
|
||||
req.useDirectExec = false
|
||||
|
||||
|
||||
err = checkShellArgumentSafety(req.Action)
|
||||
if err != nil {
|
||||
req.logEntry.Output = err.Error()
|
||||
log.Warn(err.Error())
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
req.finalParsedCommand, err = parseActionArguments(req.Arguments, req.Action, req.EntityPrefix)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user