Skip to content

Commit

Permalink
multiple-outputs.sh: Do not leak _var variable from _assignFirst
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Feb 26, 2023
1 parent 71abb2c commit 6e91cb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/build-support/setup-hooks/multiple-outputs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ postFixupHooks+=(_multioutPropagateDev)
# specific to this function's use case, which is setting up the output variables.
_assignFirst() {
local varName="$1"
local _var
local REMOVE=REMOVE # slightly hacky - we allow REMOVE (i.e. not a variable name)
shift
for _var in "$@"; do
Expand Down

0 comments on commit 6e91cb0

Please sign in to comment.