Add single quotes for inner command.
Change to bash as interpreter. Forbid single quotes for user commands.
This commit is contained in:

committed by
Sebastian Serth

parent
4c25473c9e
commit
8950ab3776
@ -37,7 +37,7 @@ func (er *ExecutionRequest) FullCommand() []string {
|
||||
for variable, value := range er.Environment {
|
||||
command = append(command, fmt.Sprintf("%s=%s", variable, value))
|
||||
}
|
||||
command = append(command, "sh", "-c", er.Command)
|
||||
command = append(command, "bash", "-c", er.Command)
|
||||
return command
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user