Use eval() to remove any trailing stuff in front or after opkg-command
This commit is contained in:
		@@ -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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user