fix: remove eval

This commit is contained in:
Carlos Prado 2023-01-07 13:26:05 +01:00
parent b96af313f1
commit d0ebd46645
No known key found for this signature in database
GPG Key ID: AF40FF1711925DB8

View File

@ -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 && "$@"
}