Install bundler with gem

Make sure we have bundler installed before we start making calls to
it.  Since we have already setup the GEM_HOME folder, we can just
installed bundler first.

Change-Id: Id646348a97cc802395a485f8582a34816ced45fb
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-04-11 08:54:08 -04:00
parent d584cb3d17
commit 1e208e9a28
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/usr/bin/env bash -x
# Build groups distribution from local filesystem instead of fetching
# directly from git
@ -24,8 +24,9 @@ cd $TARGET_DIR/profiles/$PROFILE_NAME/themes/$THEME_NAME
if [ -f Gemfile ]; then
mkdir .bundled_gems
export GEM_HOME=`pwd`/.bundled_gems
bundle install
bundle exec compass compile
gem install bundler --no-rdoc --no-ri --verbose
$GEM_HOME/bin/bundle install
$GEM_HOME/bin/bundle exec compass compile
# cleanup
rm -rf .bundled_gems .sass-cache
fi