aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc.d/prompt.bash2
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