提交 0190eb08 编写于 作者: M Marc Cornellà

Use unaliased grep in flag check

上级 cf586b54
......@@ -9,7 +9,7 @@ GREP_OPTIONS="--color=auto"
VCS_FOLDERS="{.bzr,.cvs,.git,.hg,.svn}"
grep-flag-available() {
echo | grep $1 "" >/dev/null 2>&1
echo | command grep $1 "" >/dev/null 2>&1
}
if grep-flag-available --exclude-dir=.cvs; then
GREP_OPTIONS+=" --exclude-dir=$VCS_FOLDERS"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册