~hristoast/mousikofidi

ref: e4b8603520daea923c7403973788baccec34fe94 mousikofidi/pre-commit.sh -rwxr-xr-x 354 bytes
e4b86035Hristos N. Triantafillou Sometimes parts of file names or titles are big 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

set -e

export LANG=en_US.UTF-8

arg="${1}"
here=$(realpath $(dirname ${0}))

if [ "${arg}" = "--install" ]; then
    if ! [ "$(readlink ${here}/.git/hooks/pre-commit)" = "../../pre-commit.sh" ]; then
        cd "${here}"/.git/hooks
        ln -fsv ../../pre-commit.sh ./pre-commit
    fi
    exit
fi

cd "${here}"/../../

make test-verbose