Skip to content

Commit 415c9c1

Browse files
committed
Set MAKE_OPTS only if MAKEOPTS is present [GH issue rbenv#149]
1 parent cacc406 commit 415c9c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ruby-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ build_package() {
129129
build_package_standard() {
130130
local package_name="$1"
131131

132-
if [ -z "${MAKEOPTS+defined}" ]; then
132+
if [ "${MAKEOPTS+defined}" ]; then
133133
MAKE_OPTS="$MAKEOPTS"
134134
elif [ -z "${MAKE_OPTS+defined}" ]; then
135135
MAKE_OPTS="-j 2"

0 commit comments

Comments
 (0)