aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2019-10-17 19:50:17 -0500
committerAndrew Robbins <contact@andrewrobbins.info>2019-10-19 17:32:52 -0500
commit4b8a27ade3f4cdb8b415972124e868bc2c0dd480 (patch)
tree084e981f765775e5f4a7ba43d835ff42c20762cc /libs
parent436971aa5a2cd6ba3662ee29b83f06424bc466ce (diff)
downloadlibrebootfr-4b8a27ade3f4cdb8b415972124e868bc2c0dd480.tar.gz
librebootfr-4b8a27ade3f4cdb8b415972124e868bc2c0dd480.zip
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.
Diffstat (limited to 'libs')
-rwxr-xr-xlibs/project8
1 files changed, 5 insertions, 3 deletions
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() {