Use eval() to remove any trailing stuff in front or after opkg-command
This commit is contained in:
parent
ada0105f7f
commit
e06c5acb1c
@ -11,7 +11,7 @@ exec_opkg_command () {
|
|||||||
|
|
||||||
log_debug "$func:${LINENO} exec-ing [$*]"
|
log_debug "$func:${LINENO} exec-ing [$*]"
|
||||||
|
|
||||||
exec {fd}< <($@)
|
exec {fd}< <(eval "$@")
|
||||||
local ps_pid=$! # remember pid of process substitution
|
local ps_pid=$! # remember pid of process substitution
|
||||||
|
|
||||||
local opkg_result=""
|
local opkg_result=""
|
||||||
@ -138,6 +138,10 @@ exec_opkg_no_action() {
|
|||||||
#
|
#
|
||||||
exec_opkg () {
|
exec_opkg () {
|
||||||
local func="${FUNCNAME[0]}"
|
local func="${FUNCNAME[0]}"
|
||||||
|
log_info "$func:${LINENO}: executing $opkg_command"
|
||||||
|
|
||||||
|
local opkg_result=$(exec_opkg_command "opkg $1")
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user