Clean up pre-commit.sh
This commit is contained in:
parent
f53d436638
commit
68ca4742c5
1 changed files with 4 additions and 5 deletions
|
@ -1,12 +1,9 @@
|
|||
#!/bin/env bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Call `tidy --bless` before each commit
|
||||
# Copy this scripts to .git/hooks to activate,
|
||||
# and remove it from .git/hooks to deactivate.
|
||||
#
|
||||
# For help running bash scripts on Windows,
|
||||
# see https://stackoverflow.com/a/6413405/6894799
|
||||
#
|
||||
|
||||
set -Eeuo pipefail
|
||||
|
||||
|
@ -17,6 +14,8 @@ if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
|
|||
COMMAND="python $COMMAND"
|
||||
fi
|
||||
|
||||
echo "Running pre-commit script $COMMAND";
|
||||
echo "Running pre-commit script '$COMMAND'";
|
||||
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
$COMMAND;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue