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:
parent
6143328e16
commit
3ddecb18c8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue