summaryrefslogtreecommitdiffstats
path: root/settings.sh
blob: 60acaf929780a3783f11a50f5d09ae2dfaee284b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
REPO="/root/repo"
REAL="/var/lib/bcfg2"
OLDPWD="$(pwd)"
BINDIR="$( cd -P "$( dirname -- "$0" )" >/dev/null && pwd )"

DIFF=diff
if hash colordiff >/dev/null 2>&1; then
    DIFF=colordiff
fi

error() {
    echo "$@" 1>&2
    echo "Aborting." 1>&2
    cd "$OLDPWD" >/dev/null
    exit 1
}