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
All checks were successful
Tests / check (push) Successful in 38s
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
fe401b9a12
commit
085882aa2b
2 changed files with 15 additions and 5 deletions
4
test.sh
4
test.sh
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue