Correct conditional for archived squashfs

This commit is contained in:
Joshua Boniface 2019-06-15 22:25:45 -04:00
parent f01050e890
commit 1c63100078
1 changed files with 1 additions and 1 deletions

View File

@ -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."