From ada0105f7f355f2195f4c4e2827237d3ebe8120c Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 3 Jun 2022 22:17:27 +0200 Subject: [PATCH] Use eval() to remove any trailing stuff in front or after opkg-command --- git_helpers | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/git_helpers b/git_helpers index bfa0302..227673c 100755 --- a/git_helpers +++ b/git_helpers @@ -19,7 +19,13 @@ exec_git_command () { log_debug "$func:${LINENO} exec-ing [$*]" - exec {fd}< <($@) + exec {fd}< <(eval "$@") + + # if [ "$*" = "git pull" ]; then + # else + # exec {fd}< <($@) + # fi + local ps_pid=$! # remember pid of process substitution local git_result="" @@ -154,7 +160,7 @@ pull_customer_repository () { fi log_debug "$func:${LINENO}: commit_before_pull=$commit_before_pull" - + local git_result=$(exec_git_command 'git pull') if [ -z "$git_result" ]; then