Fix command "go up" goes to root

This commit is contained in:
斟酌 鵬兄 2014-12-24 17:22:48 +08:00
parent 27aee4d5c9
commit 96e7746dbd

View File

@ -96,6 +96,10 @@ __go_nav() {
for i in "${!PWDA[@]}"
do
MARK=$i
if [[ "${PWDA[$i]}" =~ $ARG3 ]]; then
continue
fi
if [[ "${PWDA[$i]}" =~ $ARG3 ]]; then
break
fi