diff --git a/functions/cmd_to_container.sh b/functions/cmd_to_container.sh index c4d0e34d..1f1c8d51 100644 --- a/functions/cmd_to_container.sh +++ b/functions/cmd_to_container.sh @@ -43,13 +43,13 @@ else do clear -x title - cont_search=$( + for i in "${containers[@]}" do echo "$i" done | nl -s ") " | column -t - ) - echo "$cont_search" + + echo echo "0) Exit" read -rt 120 -p "Choose a container by number: " selection || { echo -e "\nFailed to make a selection in time" ; exit; }