We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f53d436 commit 68ca474Copy full SHA for 68ca474
src/etc/pre-commit.sh
@@ -1,12 +1,9 @@
1
-#!/bin/env bash
+#!/usr/bin/env bash
2
#
3
# Call `tidy --bless` before each commit
4
# Copy this scripts to .git/hooks to activate,
5
# and remove it from .git/hooks to deactivate.
6
7
-# For help running bash scripts on Windows,
8
-# see https://stackoverflow.com/a/6413405/6894799
9
-#
10
11
set -Eeuo pipefail
12
@@ -17,6 +14,8 @@ if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
17
14
COMMAND="python $COMMAND"
18
15
fi
19
16
20
-echo "Running pre-commit script $COMMAND";
+echo "Running pre-commit script '$COMMAND'";
+
+cd "$ROOT_DIR"
21
22
$COMMAND;
0 commit comments