Merge "make croot slightly more useful"
This commit is contained in:
@@ -922,7 +922,11 @@ function croot()
|
|||||||
{
|
{
|
||||||
T=$(gettop)
|
T=$(gettop)
|
||||||
if [ "$T" ]; then
|
if [ "$T" ]; then
|
||||||
|
if [ "$1" ]; then
|
||||||
|
\cd $(gettop)/$1
|
||||||
|
else
|
||||||
\cd $(gettop)
|
\cd $(gettop)
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "Couldn't locate the top of the tree. Try setting TOP."
|
echo "Couldn't locate the top of the tree. Try setting TOP."
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user