Initial Robot U site prototype
This commit is contained in:
commit
fe19f200d7
27 changed files with 3677 additions and 0 deletions
12
scripts/install_git_hooks.sh
Executable file
12
scripts/install_git_hooks.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
|
||||
if ! git -C "${root_dir}" rev-parse --git-dir >/dev/null 2>&1; then
|
||||
echo "Skipping git hook install because ${root_dir} is not a git repository."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
git -C "${root_dir}" config core.hooksPath .githooks
|
||||
echo "Installed git hooks from ${root_dir}/.githooks"
|
||||
Loading…
Add table
Add a link
Reference in a new issue