diff options
author | Andrew Robbins <contact@andrewrobbins.info> | 2019-10-17 19:50:17 -0500 |
---|---|---|
committer | Andrew Robbins <contact@andrewrobbins.info> | 2019-10-19 17:32:52 -0500 |
commit | 4b8a27ade3f4cdb8b415972124e868bc2c0dd480 (patch) | |
tree | 084e981f765775e5f4a7ba43d835ff42c20762cc /libs | |
parent | 436971aa5a2cd6ba3662ee29b83f06424bc466ce (diff) | |
download | librebootfr-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-x | libs/project | 8 |
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() { |