From 1c63100078ac925e27d19aec9a3ad919a33c0c06 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 15 Jun 2019 22:25:45 -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."