1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 17:28:01 +00:00

Return inside of the if statement

This commit is contained in:
Sorin Ionescu 2012-09-29 23:37:28 -04:00
parent 39a793af0a
commit 6c1a81b5cf

View File

@ -10,7 +10,7 @@ local git_dir="${$(git rev-parse --git-dir):A}"
if [[ -n "$git_dir" ]]; then
print "$git_dir"
return 0
else
return 1
fi
return 1