Skip to content

Commit 6299e1e

Browse files
committed
Support multiple containers
Signed-off-by: Morten Linderud <morten@linderud.pw>
1 parent 38c42d9 commit 6299e1e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

repro.in

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ function remove_snapshot (){
162162
# Desc: Creates a snapshot of the root container
163163
# 1: name of container
164164
function create_snapshot (){
165-
local build=$1
165+
local build="$1"
166166

167-
trap "{ remove_snapshot $build ; exit 1; }" ERR INT
167+
trap "{ remove_snapshot \"$build\" ; exit 1; }" ERR INT
168168

169169
msg2 "Create snapshot for $build..."
170170
mkdir -p "$BUILDDIRECTORY/"{"${build}","${build}_upperdir","${build}_workdir"}
@@ -277,6 +277,8 @@ function cmd_check(){
277277
SOURCE_DATE_EPOCH="${buildinfo[builddate]}"
278278

279279

280+
local build="${pkgbase}_$$"
281+
280282
msg2 "Preparing packages"
281283
mkdir -p "${cachedir}"
282284
mapfile -t packages < <(buildinfo -d "${cachedir}" "${pkg}")

0 commit comments

Comments
 (0)