Update pkgs/stdenv/generic/setup.sh: group var declaration

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Raphael Megzari 2021-06-30 13:23:45 +09:00
parent bcdfbfa19f
commit 80c9096d9c

View file

@ -544,8 +544,7 @@ _activatePkgs
# with this information to the relevant env hook array, but bash
# doesn't have closures, so it's easier to just pass this in.
_addToEnv() {
local depHostOffset depTargetOffset
local pkg
local depHostOffset depTargetOffset pkg
for depHostOffset in "${allPlatOffsets[@]}"; do
local hookVar="${pkgHookVarVars[$(( depHostOffset + 1 ))]}"