Skip to content

Commit 2de6b0d

Browse files
committed
cmd-build-with-buildah: make build existence check arch-aware
When checking if a build with the given version already exists, we should check for a build for that specific arch too. We may be adding another arch to an existing build.
1 parent 78a9454 commit 2de6b0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmd-build-with-buildah

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ build_with_buildah() {
113113
argsfile=build-args.conf
114114
fi
115115

116-
if [ -e "builds/$VERSION" ]; then
117-
echo "Build ${VERSION} already exists"
116+
if [ -e "builds/$VERSION/${arch}" ]; then
117+
echo "Build ${VERSION} ($arch) already exists"
118118
exit 0
119119
fi
120120

0 commit comments

Comments
 (0)