penguin/utils

my env utils

commit f7866cc982d9705a0866238a40d2a28598f7e2b8

author斟酌 鵬兄 <tgckpg@gmail.com>
date2021-09-27T21:24:09Z
subjectFixed traversion error
commit f7866cc982d9705a0866238a40d2a28598f7e2b8
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2021-09-27T21:24:09Z

    Fixed traversion error
---
 bash/bashrc/sources/40_go-command | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bash/bashrc/sources/40_go-command b/bash/bashrc/sources/40_go-command
index 8e20a1f..356550d 100755
--- a/bash/bashrc/sources/40_go-command
+++ b/bash/bashrc/sources/40_go-command
@@ -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)