fix: remove eval
This commit is contained in:
parent
b96af313f1
commit
d0ebd46645
@ -447,7 +447,7 @@ function check_wanted_programs() {
|
||||
}
|
||||
|
||||
# exec function if defined
|
||||
# $1 function name
|
||||
# $@ function name and arguments
|
||||
function maybe_exec() {
|
||||
type "$1" >/dev/null 2>&1 && eval "$*"
|
||||
type "$1" &>/dev/null && "$@"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user