Skip to content

Commit

Permalink
hook tool
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Mar 2, 2024
1 parent cb0ceca commit 208d843
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/install-git-hooks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env sh

set -eu
cd "$(dirname "$(realpath "$0")")/.."

echo "#!/bin/sh
set -eu
./tools/readme.go > README.md
git add README.md
" >.git/hooks/pre-commit
chmod +x .git/hooks/pre-commit

0 comments on commit 208d843

Please sign in to comment.