From 3dd171ffe2b6135859fc5f201e093474e80251fa Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 21 Oct 2021 02:20:17 -0400 Subject: [PATCH] diff-highlight: use copy in $PATH if available --- .bin/diff-highlight | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.bin/diff-highlight b/.bin/diff-highlight index 940d802..accf635 100755 --- a/.bin/diff-highlight +++ b/.bin/diff-highlight @@ -24,6 +24,8 @@ main() { # If we've already bootstrapped, use it. if [ -x "${TARGET}" ] ; then exec "${TARGET}" "$@" + elif [ -x "/usr/bin/diff-highlight" ] ; then + exec /usr/bin/diff-highlight "$@" else # Fallback so .gitconfig setings always work. exec cat -- 2.39.5