From 714146d3d1fb773e5b8e23ac1292ea536f7ef120 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Fri, 12 May 2023 10:06:41 -0700 Subject: [PATCH] turn off set when testing for iso --- iso/empanadas/empanadas/templates/buildExtraImage.tmpl.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iso/empanadas/empanadas/templates/buildExtraImage.tmpl.sh b/iso/empanadas/empanadas/templates/buildExtraImage.tmpl.sh index f9e6eb0..71157aa 100644 --- a/iso/empanadas/empanadas/templates/buildExtraImage.tmpl.sh +++ b/iso/empanadas/empanadas/templates/buildExtraImage.tmpl.sh @@ -6,7 +6,9 @@ function podman_setup_dirs() { {{ lorax_pkg_cmd }} mkdir -p {{ compose_work_iso_dir }}/{{ arch }} cd {{ compose_work_iso_dir }}/{{ arch }} - test -f {{ isoname }} && { echo "ERROR: ISO ALREDY EXISTS!"; exit 1; } + set +e + test -f {{ isoname }} && { echo "ERROR: ISO ALREDY EXISTS!"; exit 32; } + set -e } function podman_create_links() {