diff options
author | Jan-Michael Brummer <jan.brummer@tabos.org> | 2023-05-02 10:53:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 10:53:36 +0200 |
commit | d159c5f40ff7e82354e45116d9b66b1f596d9320 (patch) | |
tree | 34506d9ee6c699444a170c6bba8c925c45407d3e /data/pre-commit-hook | |
parent | 8fec01ed4b95afc71bf7710bf5b736a5de03b343 (diff) | |
parent | 5272fb3d114f0d012871380bd429546c73f0226d (diff) | |
download | libproxy-git-d159c5f40ff7e82354e45116d9b66b1f596d9320.tar.gz |
Merge pull request #201 from janbrummer/rewrite
Complete rewrite
Diffstat (limited to 'data/pre-commit-hook')
-rw-r--r-- | data/pre-commit-hook | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/data/pre-commit-hook b/data/pre-commit-hook new file mode 100644 index 0000000..24b2ff2 --- /dev/null +++ b/data/pre-commit-hook @@ -0,0 +1,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 -
\ No newline at end of file |