Fixing issue with Vagrant
This commit is contained in:
parent
e84fe4b67f
commit
650d635d98
1 changed files with 10 additions and 1 deletions
11
jekyll.sh
11
jekyll.sh
|
@ -9,7 +9,16 @@ export GEM_HOME=".gems"
|
||||||
export PATH=".gems/bin:$PATH"
|
export PATH=".gems/bin:$PATH"
|
||||||
|
|
||||||
echo "Installing Jekyll"
|
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
|
gem install jekyll bundler
|
||||||
|
|
||||||
# Running Jekyll
|
# Running Jekyll
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue