Browse files

Simplify execution, just use `bundle exec`

  • Loading branch information...
1 parent ab4fbbb commit 78d1e493598428c8e4277154da0523db0e2726f6 @jbarnette jbarnette committed Feb 13, 2013
Showing with 2 additions and 4 deletions.
  1. +2 −4 script/cardboard-exec
View
6 script/cardboard-exec
@@ -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" "$@"

0 comments on commit 78d1e49

Please sign in to comment.