.bashrc: Use more portable [[ test

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2014-10-29 17:11:25 +03:00
parent d1f7bb4ef2
commit 00ee82685a
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -9,7 +9,7 @@
if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then
PATH=$(brew --prefix coreutils)/libexec/gnubin:$PATH
if [ -f $(brew --prefix)/etc/bash_completion ]; then
if [[ -f $(brew --prefix)/etc/bash_completion ]]; then
. $(brew --prefix)/etc/bash_completion
fi
fi