Move script to src/etc
This commit is contained in:
parent
44af74f6dd
commit
7de557bf9c
@ -1,12 +1,16 @@
|
|||||||
#!/bin/sh
|
#!/bin/env bash
|
||||||
#
|
#
|
||||||
# Call `tidy --bless` before each commit
|
# Call `tidy --bless` before each commit
|
||||||
|
# Copy this scripts to .git/hooks to activate,
|
||||||
|
# and remove it from .git/hooks to deactivate.
|
||||||
#
|
#
|
||||||
# To enable this hook, run `./x.py run install-git-hook`.
|
# For help running bash scripts on Windows,
|
||||||
# To disable it, run `./x.py run install-git-hook --remove`
|
# see https://stackoverflow.com/a/6413405/6894799
|
||||||
|
#
|
||||||
|
|
||||||
set -Eeuo pipefail
|
set -Eeuo pipefail
|
||||||
|
|
||||||
ROOT_DIR=$(git rev-parse --show-toplevel);
|
ROOT_DIR="$(git rev-parse --show-toplevel)";
|
||||||
COMMAND="$ROOT_DIR/x.py test tidy --bless";
|
COMMAND="$ROOT_DIR/x.py test tidy --bless";
|
||||||
|
|
||||||
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
|
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
|
Loading…
Reference in New Issue
Block a user