Improve bootstrapping
This commit is contained in:
parent
0fc1dc7da2
commit
34c2b3f84d
1 changed files with 8 additions and 4 deletions
|
@ -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" "$@"
|
||||
|
|
Loading…
Reference in a new issue