Use eval() to remove any trailing stuff in front or after opkg-command

This commit is contained in:
Gerhard Hoffmann 2022-06-03 22:18:00 +02:00
parent ada0105f7f
commit e06c5acb1c

View File

@ -11,7 +11,7 @@ exec_opkg_command () {
log_debug "$func:${LINENO} exec-ing [$*]"
exec {fd}< <($@)
exec {fd}< <(eval "$@")
local ps_pid=$! # remember pid of process substitution
local opkg_result=""
@ -138,6 +138,10 @@ exec_opkg_no_action() {
#
exec_opkg () {
local func="${FUNCNAME[0]}"
log_info "$func:${LINENO}: executing $opkg_command"
local opkg_result=$(exec_opkg_command "opkg $1")
return 0
}