From 650d635d98e531e713c4196b00a59d058b324e16 Mon Sep 17 00:00:00 2001 From: Zachary Klosko Date: Wed, 18 Nov 2020 15:03:40 -0500 Subject: [PATCH] Fixing issue with Vagrant --- jekyll.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/jekyll.sh b/jekyll.sh index c02e5f868..ea117e27d 100644 --- a/jekyll.sh +++ b/jekyll.sh @@ -9,7 +9,16 @@ export GEM_HOME=".gems" export PATH=".gems/bin:$PATH" echo "Installing Jekyll" -cd docs + +# Picking different directory if installing with Vagrant +localUser=$(who am i | awk '{print $1}') +if [ $localUser == vagrant ] +then + cd /vagrant/docs +else + cd docs +fi + gem install jekyll bundler # Running Jekyll