PCv5/hooks/pre-commit

9 lines
173 B
Bash
Executable File

#!/bin/bash
modifiedless=$(make -n css | grep less)
if [[ -n "$modifiedless" ]]
then
echo -e "\e[33;1m[error] remember to run 'make css' before commiting\e[0m"
exit 1
fi