multiple-outputs.sh: Do not leak _var variable from _assignFirst

This commit is contained in:
Robert Hensing 2023-02-26 09:57:00 +01:00
parent 71abb2c085
commit 6e91cb046e

View File

@ -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