From 94e78f756b21b1b89e0d915c6c053628820085eb Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Wed, 10 Aug 2022 17:20:34 -0600 Subject: [PATCH] variable is only being saved once --- functions/cmd_to_container.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/cmd_to_container.sh b/functions/cmd_to_container.sh index 6df7509e..4f335a49 100644 --- a/functions/cmd_to_container.sh +++ b/functions/cmd_to_container.sh @@ -48,9 +48,9 @@ else clear -x title cont_search=$( - for container in "${containers[@]}" + for i in "${containers[@]}" do - echo "$container" + echo "$i" done | nl -s ") " | column -t ) echo "$cont_search"