From 3943de066c4c8a29d31743c58eb01ff17a76e3fc Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Tue, 2 Aug 2016 15:55:33 -0700 Subject: [PATCH] script/default-site: read Jekyll source from local clone If you bump the version in the repo, then it all goes haywire. --- script/default-site | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/default-site b/script/default-site index 2f4c2083..006fd93b 100755 --- a/script/default-site +++ b/script/default-site @@ -7,10 +7,14 @@ echo "$0: setting up tmp directory" mkdir -p ./tmp rm -Rf ./tmp/default-site +workdir=$(pwd) + echo "$0: creating new default site" bundle exec exe/jekyll new tmp/default-site pushd tmp/default-site +echo "$0: respecifying the jekyll install location" +ruby -e "contents = File.read('Gemfile'); File.write('Gemfile', contents.sub(/gem \"jekyll\".*\\n/, 'gem \"jekyll\", path: \"$workdir\"'))" echo "$0: installing default site dependencies" BUNDLE_GEMFILE=Gemfile bundle install echo "$0: building the default site"