diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-25 11:10:56 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-09-25 11:10:56 +1200 |
commit | 3f85df82817acb1e6e959d5ac0abbf7cc8fe43ab (patch) | |
tree | 6c7ee964c72c8505e4cea28dbedd8c5bcbc9802f | |
parent | Consistent spacing for .gitmodules (diff) | |
download | dotfiles-3f85df82817acb1e6e959d5ac0abbf7cc8fe43ab.tar.gz dotfiles-3f85df82817acb1e6e959d5ac0abbf7cc8fe43ab.zip |
Restore previous test syntax
This reads a bit better
-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 d981acce..89cf4ef7 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -67,7 +67,7 @@ prompt() { git symbolic-ref --quiet HEAD \ || git rev-parse --short HEAD } 2>/dev/null ); - if ! [[ $branch ]]; then + if [[ ! $branch ]]; then return 1 fi branch=${branch##*/} |