Skip to content

Commit

Permalink
Simplify execution, just use bundle exec
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarnette committed Feb 13, 2013
1 parent ab4fbbb commit 78d1e49
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions script/cardboard-exec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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" "$@"

0 comments on commit 78d1e49

Please sign in to comment.