diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-21 15:41:11 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-21 15:41:11 +1200 |
commit | 11a907349bc8db747aecd899ae1f5837e71fc92c (patch) | |
tree | 3652dac86828c259f7b9f371cfe6e29090da95fa /bash | |
parent | Remove bell from minimal prompt (diff) | |
download | dotfiles-11a907349bc8db747aecd899ae1f5837e71fc92c.tar.gz dotfiles-11a907349bc8db747aecd899ae1f5837e71fc92c.zip |
Replace stray [ test with [[ in prompt script
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc.d/prompt.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index 478c6594..4a657508 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -78,7 +78,7 @@ prompt() { # If there are any new unignored files in the working tree, add a # question mark to the state - if [ -n "$(git ls-files --others --exclude-standard)" ]; then + if [[ -n $(git ls-files --others --exclude-standard) ]]; then state=$state? fi |