Merge "make croot slightly more useful"

This commit is contained in:
Marie Janssen
2016-04-25 14:54:44 +00:00
committed by Gerrit Code Review

View File

@@ -922,7 +922,11 @@ function croot()
{
T=$(gettop)
if [ "$T" ]; then
\cd $(gettop)
if [ "$1" ]; then
\cd $(gettop)/$1
else
\cd $(gettop)
fi
else
echo "Couldn't locate the top of the tree. Try setting TOP."
fi