fix(lib): fix diff --color argument check for BSD systems (#10269)

This commit is contained in:
michael-yuji authored and GitHub committed 2021-10-10 19:15:24 +02:00
1 parent 6ac1ff6905
commit f82aa81931
1 file changed
+1 -1
+1 -1
View File
@@ -40,7 +40,7 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then
fi fi
# enable diff color if possible. # enable diff color if possible.
if command diff --color . . &>/dev/null; then if command diff --color /dev/null /dev/null &>/dev/null; then
alias diff='diff --color' alias diff='diff --color'
fi fi