更新软件结构
This commit is contained in:
parent
35c77a1a01
commit
f6896bdb28
@ -11,7 +11,7 @@ case $pick in
|
|||||||
docker ps --format "{{.Names}}"
|
docker ps --format "{{.Names}}"
|
||||||
;;
|
;;
|
||||||
'2')
|
'2')
|
||||||
declare -a deocker_arr=($(docker ps --format "{{.Names}}"))
|
declare -a deocker_arr=($(docker ps --format "{{.Names}}" | cut -d ' ' -f1))
|
||||||
declare deocker_number=0
|
declare deocker_number=0
|
||||||
for i in "${!deocker_arr[@]}" ; do
|
for i in "${!deocker_arr[@]}" ; do
|
||||||
deocker_number=$(( deocker_number+1 ))
|
deocker_number=$(( deocker_number+1 ))
|
||||||
|
4
Run.sh
4
Run.sh
@ -49,8 +49,8 @@ if [[ "${pick}" =~ [1-${#pick_array[*]}] ]];then
|
|||||||
clear
|
clear
|
||||||
if [[ -d "${path_local}/${pick_array[$pick]}" ]]; then
|
if [[ -d "${path_local}/${pick_array[$pick]}" ]]; then
|
||||||
path_local="${path_local}/${pick_array[$pick]}"
|
path_local="${path_local}/${pick_array[$pick]}"
|
||||||
elif [[ -e "${path_script}/${pick_array[$pick]}.sh" ]]; then
|
elif [[ -e "${path_local}/${pick_array[$pick]}.sh" ]]; then
|
||||||
bash "${path_script}/${pick_array[$pick]}.sh"
|
bash "${path_local}/${pick_array[$pick]}.sh"
|
||||||
path_local=$path_script
|
path_local=$path_script
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user