1
0
Fork 0

Simplify execution, just use `bundle exec`

This commit is contained in:
John Barnette 2013-02-13 11:10:10 -08:00
parent ab4fbbb5ed
commit 78d1e49359
1 changed files with 2 additions and 4 deletions

View File

@ -7,7 +7,6 @@ cd $(dirname "$0")/..
BUNDLE=.bundle
BIN=$BUNDLE/binstubs
CARDBOARD=$BIN/cardboard
SCRIPT=$(basename "$0")
BUNDLE_ARGS="--binstubs $BIN --path $BUNDLE --quiet"
@ -16,6 +15,5 @@ BUNDLE_ARGS="--binstubs $BIN --path $BUNDLE --quiet"
rm -rf {$BIN,$BUNDLE/config}
bundle install $BUNDLE_ARGS
"$CARDBOARD" bootstrap
exec "$CARDBOARD" "$SCRIPT" "$@"
bundle exec cardboard bootstrap
exec bundle exec cardboard "$SCRIPT" "$@"