Set MAKE_OPTS only if MAKEOPTS is present [GH issue #149]

This commit is contained in:
Eric Saxby 2012-03-30 13:06:50 -07:00
parent cacc406e04
commit 415c9c1437

View file

@ -129,7 +129,7 @@ build_package() {
build_package_standard() {
local package_name="$1"
if [ -z "${MAKEOPTS+defined}" ]; then
if [ "${MAKEOPTS+defined}" ]; then
MAKE_OPTS="$MAKEOPTS"
elif [ -z "${MAKE_OPTS+defined}" ]; then
MAKE_OPTS="-j 2"