From 72b773c778ecc5473a94f68f38b23a4d8475f1f9 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:53 -0400 Subject: [PATCH] Correct conditional for archived squashfs --- buildiso.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildiso.sh b/buildiso.sh index 55abaf0..ca5a151 100755 --- a/buildiso.sh +++ b/buildiso.sh @@ -120,7 +120,7 @@ prepare_rootfs() { echo "done." echo -n "Generating squashfs image of live installation... " - if [[ ! -f artifacts/filesystem.squashfs && -z ${usecachedsquashfs} ]]; then + if [[ ! -f artifacts/filesystem.squashfs || -z ${usecachedsquashfs} ]]; then sudo nice mksquashfs ${tempdir}/rootfs/ artifacts/filesystem.squashfs -e boot &>/dev/null || fail "Error generating squashfs." fi sudo cp artifacts/filesystem.squashfs ${tempdir}/installer/live/filesystem.squashfs &>/dev/null || fail "Error copying squashfs to tempdir."