diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-04 12:55:18 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-04 12:55:18 +1200 |
commit | f06a44231a91ba3561c9492c1e31b1c30c165130 (patch) | |
tree | fd1f2f72a65ae56c5dc0c4a07319c292d8433a5c /bash/bashrc.d/grep.bash | |
parent | Correct argument test in bd() and prompt() (diff) | |
download | dotfiles-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.bash | 2 |
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 |