Fix quoting in _lp_upwards_find usage

Should fix some issues with VCS detection.
This commit is contained in:
Olivier Mengué 2013-12-27 18:48:54 +01:00
parent 1aca2d7e3d
commit 3a54eaa881

View File

@ -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.