blob: 48699a881140ec6441a6178eb0b54f3bfec6ed47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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
cd "$OLDPWD" >/dev/null
exit 1
}
|