Created
July 14, 2015 15:47
-
-
Save zuDevonRW/d08e3fc211dbeee4cdd8 to your computer and use it in GitHub Desktop.
Run scss-lint from pre-commit
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
# run scss-lint | |
scssLintResult=$(scss-lint -c scss-config.yml) | |
if [[ $scssLintResult == "" ]]; then | |
echo "$(tput setaf 2)scss lint Passed$(tput sgr0)" | |
else | |
echo "$(tput setaf 1)scss lint: $result error(s), aborting commit$(tput sgr0)" | |
scss-lint -c scss-config.yml | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment