From 3f85df82817acb1e6e959d5ac0abbf7cc8fe43ab Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 25 Sep 2013 11:10:56 +1200 Subject: Restore previous test syntax This reads a bit better --- bash/bashrc.d/prompt.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash') 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##*/} -- cgit v1.2.3