From 4b8a27ade3f4cdb8b415972124e868bc2c0dd480 Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Thu, 17 Oct 2019 19:50:17 -0500 Subject: libs/project: Perform project action in subshell Whenever project_include() is called, it should be done within a subshell in order to avoid clobbering function definitions. --- libs/project | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libs') diff --git a/libs/project b/libs/project index adc738fb..0bcc4d9d 100755 --- a/libs/project +++ b/libs/project @@ -282,10 +282,12 @@ project_action_arguments() { local project="$1" shift - project_include "$project" + ( + project_include "$project" - project_action_arguments_verify_recursive "$action" "$project" "$@" - project_action_arguments_recursive "$action" "$project" "$@" + project_action_arguments_verify_recursive "$action" "$project" "$@" + project_action_arguments_recursive "$action" "$project" "$@" + ) } project_action_arguments_verify_recursive() { -- cgit v1.2.3-70-g09d2