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:." ...@@ -21,7 +21,7 @@ export PATH="$PATH:."
21 # Convenience utility to warp to various ONOS source projects 21 # Convenience utility to warp to various ONOS source projects
22 # e.g. 'o api', 'o dev', 'o' 22 # e.g. 'o api', 'o dev', 'o'
23 function o { 23 function o {
24 - cd $(find $ONOS_ROOT/ -type d | egrep -v '.git|target|src' | \ 24 + cd $(find $ONOS_ROOT/ -type d | egrep -v '\.git|target|src' | \
25 egrep "${1:-$ONOS_ROOT}" | head -n 1) 25 egrep "${1:-$ONOS_ROOT}" | head -n 1)
26 } 26 }
27 27
......