stdenv: generic/setup.sh: cleanup installPhase

This commit is contained in:
Jan Malakhovski 2018-03-15 00:00:02 +00:00
parent ad98c36f1b
commit e9e06888ed

View File

@ -1018,14 +1018,12 @@ installPhase() {
mkdir -p "$prefix"
fi
installTargets="${installTargets:-install}"
# Old bash empty array hack
# shellcheck disable=SC2086
local flagsArray=(
$installTargets
$makeFlags ${makeFlagsArray+"${makeFlagsArray[@]}"}
$installFlags ${installFlagsArray+"${installFlagsArray[@]}"}
${installTargets:-install}
)
echoCmd 'install flags' "${flagsArray[@]}"