Replace another unweildy "if P1 || P2" statement with its "case" equivalent.
This commit is contained in:
parent
8474de1d65
commit
a5e675792a
|
@ -223,10 +223,11 @@ case "${LH_CHROOT_FILESYSTEM}" in
|
||||||
MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -info"
|
MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -info"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${LH_PACKAGES_LISTS}" = "stripped" ] || [ "${LH_PACKAGES_LISTS}" = "minimal" ]
|
case "${LH_PACKAGES_LISTS}" in
|
||||||
then
|
stripped|minimal)
|
||||||
MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -e $(ls chroot/boot/${LINUX}* chroot/boot/initrd.img* chroot/${LINUX}* chroot/initrd.img* | sed 's|chroot/||g')"
|
MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -e $(ls chroot/boot/${LINUX}* chroot/boot/initrd.img* chroot/${LINUX}* chroot/initrd.img* | sed 's|chroot/||g')"
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
if [ -f config/binary_rootfs/squashfs.sort ]
|
if [ -f config/binary_rootfs/squashfs.sort ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue