diff options
Diffstat (limited to 'settings.sh')
-rw-r--r-- | settings.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/settings.sh b/settings.sh index e954101..48699a8 100644 --- a/settings.sh +++ b/settings.sh @@ -3,6 +3,11 @@ 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 |