Replace another unweildy "if P1 || P2" statement with its "case" equivalent.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
This commit is contained in:
Chris Lamb 2008-06-19 18:58:09 +01:00
parent 6143328e16
commit 3ddecb18c8
1 changed files with 5 additions and 4 deletions

View File

@ -223,10 +223,11 @@ case "${LH_CHROOT_FILESYSTEM}" in
MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -info"
fi
if [ "${LH_PACKAGES_LISTS}" = "stripped" ] || [ "${LH_PACKAGES_LISTS}" = "minimal" ]
then
case "${LH_PACKAGES_LISTS}" in
stripped|minimal)
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 ]
then