commit | 32ec50a1f10136069c003a5b1c1fce2a822791b7 | [log] [tgz] |
---|---|---|
author | Marie Janssen <jamuraa@google.com> | Thu Apr 21 16:53:39 2016 -0700 |
committer | Marie Janssen <jamuraa@google.com> | Fri Apr 22 16:25:29 2016 -0700 |
tree | e6ffaa11e8e8433f5381d4b0be57b114f921b49a | |
parent | 9ecf54456c6fc0adc9bc635cfe59a8836eb95a10 [diff] [blame] |
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
diff --git a/envsetup.sh b/envsetup.sh index f050a9a..101ef13 100644 --- a/envsetup.sh +++ b/envsetup.sh
@@ -922,7 +922,11 @@ { 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