Yuta HIGUCHI

Fix `o` command.

- Bug: Was pruning all path if ONOS_ROOT was set to a path like: ~/git/onos-next

Change-Id: I4887d78ddc1560e69daf2c270b820afad024befa
......@@ -21,7 +21,7 @@ export PATH="$PATH:."
# Convenience utility to warp to various ONOS source projects
# e.g. 'o api', 'o dev', 'o'
function o {
cd $(find $ONOS_ROOT/ -type d | egrep -v '.git|target|src' | \
cd $(find $ONOS_ROOT/ -type d | egrep -v '\.git|target|src' | \
egrep "${1:-$ONOS_ROOT}" | head -n 1)
}
......