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" mkdir -p "$prefix"
fi fi
installTargets="${installTargets:-install}"
# Old bash empty array hack # Old bash empty array hack
# shellcheck disable=SC2086 # shellcheck disable=SC2086
local flagsArray=( local flagsArray=(
$installTargets
$makeFlags ${makeFlagsArray+"${makeFlagsArray[@]}"} $makeFlags ${makeFlagsArray+"${makeFlagsArray[@]}"}
$installFlags ${installFlagsArray+"${installFlagsArray[@]}"} $installFlags ${installFlagsArray+"${installFlagsArray[@]}"}
${installTargets:-install}
) )
echoCmd 'install flags' "${flagsArray[@]}" echoCmd 'install flags' "${flagsArray[@]}"