Fixed missing quotes around $BASH_IT variable

This should fix most issues where Bash-it is installed in a directory
containing spaces.
This commit is contained in:
Nils Winkler
2017-05-29 07:47:17 +02:00
parent 6f26f92c97
commit 0d9a0987d9
4 changed files with 25 additions and 25 deletions

View File

@@ -21,7 +21,7 @@ alias _="sudo"
# colored grep
# Need to check an existing file for a pattern that will be found to ensure
# that the check works when on an OS that supports the color option
if grep --color=auto "a" $BASH_IT/*.md &> /dev/null
if grep --color=auto "a" "${BASH_IT}/"*.md &> /dev/null
then
alias grep='grep --color=auto'
export GREP_COLOR='1;33'