hook: add reminder to build css before commiting when needed

This commit is contained in:
Darks 2022-05-12 21:39:10 +02:00
parent 38c4f274a0
commit b7dc2ebbf2
Signed by: Darks
GPG Key ID: 7515644268BE1433
1 changed files with 8 additions and 0 deletions

8
hooks/pre-commit Executable file
View File

@ -0,0 +1,8 @@
#!/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