diff --git a/Makefile b/Makefile index b314296..a81a6d2 100644 --- a/Makefile +++ b/Makefile @@ -9,4 +9,7 @@ release: -C $(PWD)/target/release oon_scraper oon_web \ -C $(PWD)/oon_web static -.PHONY: release +setup-hooks: + ln -f -s $(PWD)/pre-commit .git/hooks/pre-commit + +.PHONY: release setup-hooks diff --git a/pre-commit b/pre-commit new file mode 100755 index 0000000..85d94d4 --- /dev/null +++ b/pre-commit @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +cargo check