~hristoast/mousikofidi

ref: 1bb45c5a199a1cf8f19cd1fe77c7aceabfa0990c mousikofidi/pre-commit.sh -rwxr-xr-x 354 bytes
1bb45c5aHristos N. Triantafillou The logo as a placeholder 1 year, 2 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