From 3a54eaa8814a3b957a805c6fffabe678e7457084 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Fri, 27 Dec 2013 18:48:54 +0100 Subject: [PATCH] Fix quoting in _lp_upwards_find usage Should fix some issues with VCS detection. --- liquidprompt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liquidprompt b/liquidprompt index b50731e..d67e6cd 100755 --- a/liquidprompt +++ b/liquidprompt @@ -1077,7 +1077,7 @@ _lp_bzr_branch() # First do a simple search to avoid having to invoke bzr -- at least on my # machine, the python startup causes a noticeable hitch when changing # directories. - [[ -z $(_lp_upwards_find '.bzr') ]] && return + [[ -z "$(_lp_upwards_find '.bzr')" ]] && return # We found an .bzr folder, so we need to invoke bzr and see if we're # actually in a repository. @@ -1102,7 +1102,7 @@ _lp_bzr_branch_color() # First do a simple search to avoid having to invoke bzr -- at least on my # machine, the python startup causes a noticeable hitch when changing # directories. - [[ -z $(_lp_upwards_find '.bzr') ]] && return + [[ -z "$(_lp_upwards_find '.bzr')" ]] && return # We found an .bzr folder, so we need to invoke bzr and see if we're # actually in a repository.