Skip to content

Instantly share code, notes, and snippets.

@markhowellsmead
Created January 8, 2019 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markhowellsmead/d558d1dfb6aa33384b6a3f321547e60a to your computer and use it in GitHub Desktop.
Save markhowellsmead/d558d1dfb6aa33384b6a3f321547e60a to your computer and use it in GitHub Desktop.
Setup SASS and Compass in VVV
# sass install
sass_install="$(gem list sass -i)"
if [ "$sass_install" = true ]; then
echo "sass installed"
else
echo "sass not installed"
gem install sass
sass_path="$(gem which sass | sed -s 's/.rb/\/deployer\/base.rb/')"
if [ "$(grep yaml $sass_path)" ]; then
echo "can require yaml"
else
echo "can't require yaml"
echo "set require yaml"
sed -i "7i require\ \'yaml\'" $sass_path
echo "can require yaml"
fi
fi
# compass install
compass_install="$(gem list compass -i)"
if [ "$compass_install" = true ]; then
echo "compass installed"
else
echo "compass not installed"
gem install compass
compass_path="$(gem which compass | sed -s 's/.rb/\/deployer\/base.rb/')"
if [ "$(grep yaml $compass_path)" ]; then
echo "can require yaml"
else
echo "can't require yaml"
echo "set require yaml"
sed -i "7i require\ \'yaml\'" $compass_path
echo "can require yaml"
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment