fix: hide command check output

This commit is contained in:
Ben Grande 2024-03-23 21:43:07 +01:00
parent d3222aab71
commit 4d63820f64
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56

View File

@ -13,7 +13,7 @@ else
: "${DIFF_HIGHLIGHT_EXEC:=/usr/share/git-core/contrib/diff-highlight}"
## Debian.
if command -v perl &&
if command -v perl >/dev/null &&
test -f "${DIFF_HIGHLIGHT_SOURCE}/DiffHighlight.pm" &&
test -f "${DIFF_HIGHLIGHT_SOURCE}/diff-highlight.perl"
then
@ -21,7 +21,7 @@ else
"${DIFF_HIGHLIGHT_SOURCE}/diff-highlight.perl" | less -RS
## Fedora.
elif command -v perl && test -f "${DIFF_HIGHLIGHT_EXEC}"
elif command -v perl >/dev/null && test -f "${DIFF_HIGHLIGHT_EXEC}"
then
exec "${DIFF_HIGHLIGHT_EXEC}" | less -RS
fi