更新软件结构

This commit is contained in:
lsy 2024-09-26 15:58:40 +08:00
parent f6896bdb28
commit b460838426

View File

@ -11,9 +11,9 @@ case $pick in
docker ps --format "{{.Names}}" docker ps --format "{{.Names}}"
;; ;;
'2') '2')
declare -a deocker_arr=($(docker ps --format "{{.Names}}" | cut -d ' ' -f1)) declare -a deocker_arr=($(docker ps --format "{{.Names}}"))
declare deocker_number=0 declare deocker_number=0
for i in "${!deocker_arr[@]}" ; do for i in "${!docker_arr[@]}" ; do
deocker_number=$(( deocker_number+1 )) deocker_number=$(( deocker_number+1 ))
echo "${deocker_number}.${i}" echo "${deocker_number}.${i}"
done done