remove variable workdir

This commit is contained in:
Ashwin Maroli 2016-08-30 22:15:00 +05:30
parent f3093e2f6f
commit b2ece36d27
1 changed files with 1 additions and 2 deletions

View File

@ -10,10 +10,9 @@ rm -Rf ./tmp/default-site
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\"'))"
ruby -e "contents = File.read('Gemfile'); File.write('Gemfile', contents.sub(/gem \"jekyll\".*\\n/, 'gem \"jekyll\", path: \"../../\"'))"
echo "$0: installing default site dependencies"
BUNDLE_GEMFILE=Gemfile bundle install
echo "$0: building the default site"