Merge pull request #1457 from drwetter/drwetter-patch-2

fix missing -z
This commit is contained in:
Dirk Wetter 2020-01-17 11:57:36 +01:00 committed by GitHub
commit a094ebc981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ image=${1:-"debian:buster"}
docker pull "$image"
ID=$(docker run -d -ti $image)
[[ "$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 apt-get update
docker exec -ti $ID apt-get install -y ssl-cert dialog