From f3093e2f6f17c5490dc3e6c70dc11ebdcad05b0e Mon Sep 17 00:00:00 2001 From: Ashwin Maroli Date: Tue, 30 Aug 2016 09:35:07 +0530 Subject: [PATCH] change workdir assignment --- script/default-site | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script/default-site b/script/default-site index 041c7e97..6530c320 100755 --- a/script/default-site +++ b/script/default-site @@ -7,11 +7,10 @@ echo "$0: setting up tmp directory" mkdir -p ./tmp rm -Rf ./tmp/default-site -workdir=$(pwd) - echo "$0: creating new default site" bundle exec jekyll new tmp/default-site pushd tmp/default-site +workdir="../../" 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\"'))"