expand all for grep
This commit is contained in:
parent
a8b60f5c71
commit
bc694852a9
@ -55,7 +55,7 @@ else
|
|||||||
if [[ $selection == 0 ]]; then
|
if [[ $selection == 0 ]]; then
|
||||||
echo "Exiting.."
|
echo "Exiting.."
|
||||||
exit
|
exit
|
||||||
elif ! echo -e "$containers" | grep -qs ^"$selection)" ; then
|
elif ! echo -e "${containers[*]}" | grep -qs ^"$selection)" ; then
|
||||||
echo "Error: \"$selection\" was not an option.. Try again"
|
echo "Error: \"$selection\" was not an option.. Try again"
|
||||||
sleep 3
|
sleep 3
|
||||||
continue
|
continue
|
||||||
@ -63,7 +63,7 @@ else
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
container=$(echo "$containers" | grep ^"$selection)" | awk '{print $2}')
|
container=$(echo "${containers[*]}" | grep ^"$selection)" | awk '{print $2}')
|
||||||
container_id=$(echo "$search" | grep -E "[[:space:]]${container}[[:space:]]" | awk '{print $1}')
|
container_id=$(echo "$search" | grep -E "[[:space:]]${container}[[:space:]]" | awk '{print $1}')
|
||||||
fi
|
fi
|
||||||
while true
|
while true
|
||||||
|
Loading…
Reference in New Issue
Block a user