two-images: gardes en if explicites, shellcheck propre en 0.10 comme en 0.11 syonad/two#53
All checks were successful
Tests / check (push) Successful in 38s

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-10-24 14:02:32 +02:00
commit 085882aa2b
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
2 changed files with 15 additions and 5 deletions

View file

@ -132,7 +132,9 @@ cloud_init_done () {
}
image="${1:-}"
[ -n "${image}" ] && [ -f "${DIST}/${image}.qcow2" ] || die "usage : ${0} <image> (fichier ${DIST}/<image>.qcow2)"
if [ -z "${image}" ] || [ ! -f "${DIST}/${image}.qcow2" ]; then
die "usage : ${0} <image> (fichier ${DIST}/<image>.qcow2)"
fi
RUN=$(mktemp -d "${TMPDIR:-/tmp}/two-images-test.XXXXXX")
trap cleanup EXIT
mkdir "${RUN}/seed"