summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>2022-12-21 20:17:25 +0100
committerJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>2022-12-21 20:17:25 +0100
commit9478cb54d873222d6fba7e8972f3e1a54fa44ad0 (patch)
treef74b0ff70b8f98d3cf32bb023ba8f3fd9b3b54b0
parentfdcc9a677b19e2689d863a3e8286733ec3be67af (diff)
downloaddebvm-9478cb54d873222d6fba7e8972f3e1a54fa44ad0.tar.gz
debvm-run: if mmdebstrap failed, the image file might exist but have zero size -- test for that
-rwxr-xr-xdebvm-run1
1 files changed, 1 insertions, 0 deletions
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