summaryrefslogtreecommitdiff
path: root/data/pre-commit-hook
blob: 24b2ff2d2f4c7dac2e58c389d624e573c71229f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

. "$(dirname -- "$0")/canonicalize_filename.sh"


# exit on error
set -e

# Absolute path to this script
SCRIPT="$(canonicalize_filename "$0")"
# Absolute path this script is in, e.g. /home/user/bin/
SCRIPTPATH="$(dirname -- "$SCRIPT")"

echo $SCRIPTPATH
cd $SCRIPTPATH/../../
data/check-code-style
cd -