From 9478cb54d873222d6fba7e8972f3e1a54fa44ad0 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Wed, 21 Dec 2022 20:17:25 +0100 Subject: debvm-run: if mmdebstrap failed, the image file might exist but have zero size -- test for that --- debvm-run | 1 + 1 file changed, 1 insertion(+) diff --git a/debvm-run b/debvm-run index ce27280..3ccbf14 100755 --- a/debvm-run +++ b/debvm-run @@ -44,6 +44,7 @@ while test "$#" -gt 0; do done test -f "$IMAGE" || die "image '$IMAGE' not found" +test -s "$IMAGE" || die "image '$IMAGE' is empty" cleanup() { set +x -- cgit v1.2.3