stdenv/makeWrapper: make extraFlagsArray local

extraFlagsArray should not be exposed outside of `makeWrapper`, it
should only be possible to set it inside a script supplied via the
`--run` argument.
This commit is contained in:
Profpatsch 2016-10-07 15:56:07 +02:00
parent dd58d24fa6
commit 5ae18574fc

View File

@ -22,7 +22,7 @@ makeWrapper() {
local original=$1 local original=$1
local wrapper=$2 local wrapper=$2
local params varName value command separator n fileNames local params varName value command separator n fileNames
local argv0 flagsBefore flags local argv0 flagsBefore flags extraFlagsArray
mkdir -p "$(dirname $wrapper)" mkdir -p "$(dirname $wrapper)"