add also here -z

This commit is contained in:
Dirk Wetter 2020-01-17 15:24:36 +01:00 committed by GitHub
parent 71b6305e00
commit adfa411e24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ ID=$(docker run -d -ti $image)
echo $ID
[[ "$ID" ]] && echo "container couldn't be retrieved" >&2 && exit 1
[[ -z "$ID" ]] && echo "container couldn't be retrieved" >&2 && exit 1
docker exec -ti $ID nginx -V
docker exec -ti $ID mkdir /etc/nginx/ssl