Permalink
Browse files

use the `"$1"; shift` pattern

  • Loading branch information...
1 parent c155626 commit 34da0d15db3ccb2a667374213ed34bb1629bcbeb @jneen committed Mar 23, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 bin/ry
View
6 bin/ry
@@ -159,7 +159,9 @@ ry::install() {
# build and install the given ruby from source
#
ry::build() {
- local name="$1"
+ local name="$1"; shift
+ local config_args="$@"
+
assert_installed "$name"
local install_prefix="$RY_LIB/rubies/$name"
@@ -169,7 +171,7 @@ ry::build() {
if [[ -x "./configure" ]]; then
log "running ./configure --prefix=\"$install_prefix\"..."
- ./configure --prefix="$install_prefix" "${@:2}"
+ ./configure --prefix="$install_prefix" "$config_args"
else
log "no ./configure script found, skipping..."
fi

0 comments on commit 34da0d1

Please sign in to comment.