Unverified Commit f82aa819 authored by michael-yuji's avatar michael-yuji Committed by GitHub

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

parent 6ac1ff69
...@@ -40,7 +40,7 @@ if [[ "$DISABLE_LS_COLORS" != "true" ]]; then ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment