File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -221,9 +221,12 @@ cleanup() {
221
221
222
222
trap cleanup SIGINT
223
223
224
+ build_args=(${KEEP: +--keep} ${VERBOSE: +--verbose} ${HAS_PATCH: +--patch} " $DEFINITION " " $PREFIX " )
225
+ [ ${# EXTRA_ARGUMENTS[@]} -eq 0 ] || build_args+=(-- " ${EXTRA_ARGUMENTS[@]} " )
226
+
224
227
# Invoke `ruby-build` and record the exit status in $STATUS.
225
228
STATUS=0
226
- ruby-build $KEEP $VERBOSE $HAS_PATCH " $DEFINITION " " $PREFIX " || STATUS=" $? "
229
+ ruby-build " ${build_args[@]} " || STATUS=" $? "
227
230
228
231
# Display a more helpful message if the definition wasn't found.
229
232
if [ " $STATUS " == " 2" ]; then
Original file line number Diff line number Diff line change @@ -1331,6 +1331,10 @@ if [ "${#ARGUMENTS[@]}" -gt 2 ]; then
1331
1331
EARLY_EXIT=usage_error
1332
1332
fi
1333
1333
1334
+ if [ " ${# EXTRA_ARGUMENTS[@]} " -gt 0 ]; then
1335
+ RUBY_CONFIGURE_OPTS_ARRAY=(" ${EXTRA_ARGUMENTS[@]} " )
1336
+ fi
1337
+
1334
1338
case " $EARLY_EXIT " in
1335
1339
help )
1336
1340
version
You can’t perform that action at this time.
0 commit comments