Created
January 8, 2019 12:06
-
-
Save markhowellsmead/d558d1dfb6aa33384b6a3f321547e60a to your computer and use it in GitHub Desktop.
Setup SASS and Compass in VVV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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