Skip to content

Commit

Permalink
set home to build_dir while sourcing
Browse files Browse the repository at this point in the history
  • Loading branch information
barodeur committed Aug 6, 2014
1 parent 0dcb619 commit e1cf857
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 e1cf857

Please sign in to comment.