From e06c5acb1c6ff62d16f92978101d9c8bef3a565a Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 3 Jun 2022 22:18:00 +0200 Subject: [PATCH] Use eval() to remove any trailing stuff in front or after opkg-command --- update_psa_helpers | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/update_psa_helpers b/update_psa_helpers index 600e9d8..60520d7 100644 --- a/update_psa_helpers +++ b/update_psa_helpers @@ -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 }