Skip to content

in exec_cmd function replace eval - avoid double shell parsing and variable expansion. #953

@dougsland

Description

@dougsland

Avoid security concerns. Must be compatible with current callers to avoid breakage.

tests/e2e/lib/utils:

exec_cmd() {
    local cmd="$1"
    eval "$cmd"
    if_error_exit "Error: Command $cmd failed"
    info_message "PASS: Command $cmd successful"
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions