Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32ec50a1 authored by Marie Janssen's avatar Marie Janssen
Browse files

make croot slightly more useful

Have croot take an argument of a directory to end up in,
so we can jump around the tree even faster.

Change-Id: Ieb6a8d47fee0412006a11192b29ed44604961312
parent 9ecf5445
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -922,7 +922,11 @@ function croot()
{
    T=$(gettop)
    if [ "$T" ]; then
        if [ "$1" ]; then
            \cd $(gettop)/$1
        else
            \cd $(gettop)
        fi
    else
        echo "Couldn't locate the top of the tree.  Try setting TOP."
    fi