Fixed traversion error

This commit is contained in:
斟酌 鵬兄 2021-09-28 05:24:09 +08:00
parent f583dee98f
commit f7866cc982

View File

@ -2,6 +2,7 @@
# go command
function _begin_sel() {
local i
_selected=
_sel_len=${#_sel_args[@]}
if [ $_sel_len -gt 1 ]; then
@ -28,6 +29,7 @@ function _begin_sel() {
}
function go() {
local i
ARG1=$1; ARG2=$2; ARG3=$3;
if [[ -z "$ARG1" ]]; then
@ -120,6 +122,7 @@ function go() {
LOCATION=$__LOC
else
_sel_args=$CHOICES
_begin_sel "$LOCATION" $@
if [ -z $_selected ]; then
return 1
fi
@ -145,6 +148,7 @@ function go() {
}
__dive() {
local i
CC=$1
WDIR=$2
shift; shift
@ -180,6 +184,7 @@ __dive() {
}
__go_nav() {
local i
ARG1=$1; ARG2=$2; ARG3=$3;
case "$ARG2" in
p)