1
0
Fork 0

Improve bootstrapping

This commit is contained in:
John Barnette 2013-02-13 10:43:09 -08:00
parent 0fc1dc7da2
commit 34c2b3f84d
1 changed files with 8 additions and 4 deletions

View File

@ -5,11 +5,15 @@ set -e
cd $(dirname "$0")/..
BIN=.bundle/binstubs
BUNDLE=.bundle
BIN=$BUNDLE/binstubs
CARDBOARD=$BIN/cardboard
SCRIPT=$(basename "$0")
rm -rf .bundle/{binstubs,config}
if [ -z "$SKIP_CARDBOARD_BOOTSTRAP" ]; then
rm -rf {$BIN,$BUNDLE/config}
bundle install --binstubs "$BIN" --path "$BUNDLE" --quiet
"$CARDBOARD" bootstrap
fi
bundle install --binstubs "$BIN" --path .bundle --quiet &&
"$CARDBOARD" bootstrap && exec "$CARDBOARD" "$SCRIPT" "$@"
exec "$CARDBOARD" "$SCRIPT" "$@"