From 7cdcef25d7fcb35b5fc96c678d21b410ae342acc Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Thu, 24 Sep 2020 11:18:13 +0100 Subject: Delete Docker instance after system detection ran Don't keep the docker instance for detecting the system around to avoid stale terminated containers. --- scripts/build/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/build') diff --git a/scripts/build/build.sh b/scripts/build/build.sh index e869116b..2ddb7bd6 100755 --- a/scripts/build/build.sh +++ b/scripts/build/build.sh @@ -79,7 +79,7 @@ check_docker_os() { local docker_base=$1 local os_info="" # start docker using the base image, link this directory and get the os information - os_info=$(docker run -v "${DIR}:/tmp" "${docker_base}" /tmp/build.sh --check-os) || { echo "Docker execution failed: $os_info"; exit 1;} + os_info=$(docker run --rm -v "${DIR}:/tmp" "${docker_base}" /tmp/build.sh --check-os) || { echo "Docker execution failed: $os_info"; exit 1;} local line while read -r line; do -- cgit 1.4.1