Skip to content

Commit

Permalink
Merge pull request #1 from barodeur/fix_bundle_path
Browse files Browse the repository at this point in the history
Set home to build_dir while sourcing
  • Loading branch information
sethvargo committed Oct 22, 2014
2 parents 0dcb619 + e1cf857 commit dae82aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
# Work in the build directory
cd $1

# Set HOME to build directory in order to get the bundle command in the PATH
HOME_BACK=$HOME
export HOME=$1

# Source in all the profile stuff
for profile in ./.profile.d/*; do
. ${profile}
Expand All @@ -17,5 +21,8 @@ if [ -d "$3" ]; then
done
fi

# Set HOME back to default value
export HOME=$HOME_BACK

# Just build the static site
bundle exec middleman build --clean --verbose

0 comments on commit dae82aa

Please sign in to comment.