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

View file

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