mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Multi-line format
This commit is contained in:
parent
29406ff34d
commit
e95bd156a5
6
setup.sh
6
setup.sh
|
@ -25,7 +25,11 @@ if [ -z "$CRI" ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
INFO=$($CRI ps --no-trunc --format "{{.Image}};{{.Names}}" --filter label=org.label-schema.name="docker-mailserver" | tail -1)
|
||||
INFO=$($CRI ps \
|
||||
--no-trunc \
|
||||
--format "{{.Image}};{{.Names}}" \
|
||||
--filter label=org.label-schema.name="docker-mailserver" | \
|
||||
tail -1)
|
||||
|
||||
IMAGE_NAME=${INFO%;*}
|
||||
CONTAINER_NAME=${INFO#*;}
|
||||
|
|
Loading…
Reference in a new issue