Use eval() to remove any trailing stuff in front or after opkg-command
This commit is contained in:
parent
a507e9c29c
commit
ada0105f7f
10
git_helpers
10
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
|
||||
|
Loading…
Reference in New Issue
Block a user