1
Fork 0

Clean up pre-commit.sh

This commit is contained in:
Cassandra Fridkin 2020-10-05 19:35:06 -04:00
parent f53d436638
commit 68ca4742c5
No known key found for this signature in database
GPG key ID: B06380CCA613333A

View file

@ -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;