From 58bc76bb6569be3c20a742389f81b4e03b4506f8 Mon Sep 17 00:00:00 2001 From: Chirayu Desai Date: Tue, 30 Apr 2013 10:33:11 +0530 Subject: [PATCH] repo bash completion: _find_repo: improve check Checking if main.py exists is better than checking if it is a file, since it might be a symlink. Change-Id: I1a9e617470a05c2161479cd3f0a10712a2b9d2c2 --- bash_completion/repo.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash_completion/repo.bash b/bash_completion/repo.bash index 3b1d510d..1c4a2a8a 100644 --- a/bash_completion/repo.bash +++ b/bash_completion/repo.bash @@ -46,7 +46,7 @@ _find_repo() { while [ "${dir}" != / ] do - if [ -f "${dir}/.repo/repo/main.py" ] + if [ -e "${dir}/.repo/repo/main.py" ] then found=0 break