Fix abra run if there are 2 containers up

This commit is contained in:
3wc 2020-10-23 03:58:55 +02:00
parent 3c7c7694bf
commit b7757b51b1

2
abra
View File

@ -250,7 +250,7 @@ sub_run(){
fi
CONTAINER=$(docker container ls --format "table {{.ID}},{{.Names}}" \
| grep "${STACK_NAME}_${SERVICE}" | cut -d',' -f1)
| grep "${STACK_NAME}_${SERVICE}" | head -n1 | cut -d',' -f1)
if [ -z "$CONTAINER" ]; then
error "Can't find a container for ${STACK_NAME}_${SERVICE}"