aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/grep.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-04 12:55:18 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-04 12:55:18 +1200
commitf06a44231a91ba3561c9492c1e31b1c30c165130 (patch)
treefd1f2f72a65ae56c5dc0c4a07319c292d8433a5c /bash/bashrc.d/grep.bash
parentCorrect argument test in bd() and prompt() (diff)
downloaddotfiles-f06a44231a91ba3561c9492c1e31b1c30c165130.tar.gz
dotfiles-f06a44231a91ba3561c9492c1e31b1c30c165130.zip
Use consistent [[ syntax
Explicit -n, ! within [[
Diffstat (limited to 'bash/bashrc.d/grep.bash')
-rw-r--r--bash/bashrc.d/grep.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/grep.bash b/bash/bashrc.d/grep.bash
index 12354d78..52570ea2 100644
--- a/bash/bashrc.d/grep.bash
+++ b/bash/bashrc.d/grep.bash
@@ -1,6 +1,6 @@
# Define function wrapper for grep(1) with --color option if GREP_COLORS is
# set; checks that color is available in the terminal within the function
-if ! [[ $GREP_COLORS ]] ; then
+if [[ ! -n $GREP_COLORS ]] ; then
return
fi