#!/bin/sh set -euC # Where `diff-highlight` is located and whether it's executable varies between # distros, so try a few common places and run the shebang manually. for file in \ '/usr/share/doc/git/contrib/diff-highlight/diff-highlight' \ '/usr/share/git-core/contrib/diff-highlight' \ '/usr/share/git/diff-highlight/diff-highlight' do [ -e "$file" ] && break done prog="$(sed -n '1s/^#!//p' "$file")" exec $prog "$file" "$@"