add a little test to see if the git check is there, and if not add it
This commit is contained in:
parent
b12e22da61
commit
493e2364d7
1 changed files with 1 additions and 0 deletions
1
justfile
1
justfile
|
|
@ -42,5 +42,6 @@ setup:
|
||||||
push:
|
push:
|
||||||
git pull
|
git pull
|
||||||
git add *
|
git add *
|
||||||
|
[ -s "./.git/hooks/pre-commit" ] || echo "just test" >> ./.git/hooks/pre-commit && chmod +x ./.git/hooks/pre-commit
|
||||||
read -e -p "Commit message: " -i "$(cat .commit-message || echo '')" -r message && echo "$message" > .commit-message && git commit -m "$message" && rm -f .commit-message
|
read -e -p "Commit message: " -i "$(cat .commit-message || echo '')" -r message && echo "$message" > .commit-message && git commit -m "$message" && rm -f .commit-message
|
||||||
git push
|
git push
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue