Skip to content
Snippets Groups Projects
Commit 58bc76bb authored by Chirayu Desai's avatar Chirayu Desai Committed by Gerrit Code Review
Browse files

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
parent 0c7371ef
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment