Adding pre commit hook

This commit is contained in:
GunaTrika 2021-10-06 11:57:57 +05:30
parent 8d82591f29
commit 0c864627bd

8
pre-push Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
yarn build
if [ "$?" != 0 ]; then
printf "\n\n\033[31mBuild error found. Please resolve this to move forward\033[0m\n\n"
exit 1
fi