From 11a907349bc8db747aecd899ae1f5837e71fc92c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 21 Aug 2013 15:41:11 +1200 Subject: Replace stray [ test with [[ in prompt script --- bash/bashrc.d/prompt.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3