diff --git a/Config/Docker/image.sh b/Config/Docker/image.sh index cf12657..cc9cafb 100644 --- a/Config/Docker/image.sh +++ b/Config/Docker/image.sh @@ -11,9 +11,9 @@ case $pick in docker ps --format "{{.Names}}" ;; '2') - declare -a deocker_arr=($(docker ps --format "{{.Names}}" | cut -d ' ' -f1)) + declare -a deocker_arr=($(docker ps --format "{{.Names}}")) declare deocker_number=0 - for i in "${!deocker_arr[@]}" ; do + for i in "${!docker_arr[@]}" ; do deocker_number=$(( deocker_number+1 )) echo "${deocker_number}.${i}" done