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

This commit is contained in:
Gerhard Hoffmann 2022-06-03 22:17:27 +02:00
parent a507e9c29c
commit ada0105f7f

View File

@ -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