[from now] 2013/05/23 22:51:27

diff --git a/bin/compile b/bin/compile
index d99d3ac..0d755f8 100755
--- a/bin/compile
+++ b/bin/compile
@@ -10,19 +10,20 @@ message() {

 export LANG=en_US.UTF-8
 export LC_ALL=en_US.UTF-8
+export GEM_HOME=$1/.gems

 # Install gems to BUILD_DIR/.gems
 cat << EOF > ~/.gemrc
-gemhome: $1/.gems
+gemhome: $GEM_HOME
 gempath:
-- $1/.gems
+- $GEM_HOME
 EOF

 message "Installing bundler"
 /usr/local/bin/gem install bundler --no-rdoc --no-ri | indent

 message "Installing gems"
-bundle install | indent
+$GEM_HOME/bin/bundle install | indent

-bundle exec jekyll build | indent
+$GEM_HOME/bin/bundle exec jekyll build | indent