build-boot: Remove tmp dir afterwards

This commit is contained in:
Johan Gunnarsson 2021-08-03 20:54:48 +02:00
parent ca16cfaff8
commit a9e337931f
1 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,8 @@ TUPLE="${4}" # For example "arm-linux-gnueabihf"
set -ex
# Create fresh empty directory
TMP=$(mktemp -d tmp.XXXXXX)
TMP=$(mktemp -d -p "${PWD}" tmp-XXXXXX)
trap 'rm -rf "${TMP}"' EXIT INT TERM
cd "${TMP}"
build-image tmp.img