From a5e675792ae54c66b7c9ca470d3e47bc45960272 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Thu, 19 Jun 2008 18:58:09 +0100 Subject: Replace another unweildy "if P1 || P2" statement with its "case" equivalent. --- helpers/lh_binary_rootfs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'helpers') diff --git a/helpers/lh_binary_rootfs b/helpers/lh_binary_rootfs index de634bebc..abd26acee 100755 --- a/helpers/lh_binary_rootfs +++ b/helpers/lh_binary_rootfs @@ -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 - MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -e $(ls chroot/boot/${LINUX}* chroot/boot/initrd.img* chroot/${LINUX}* chroot/initrd.img* | sed 's|chroot/||g')" - fi + 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')" + ;; + esac if [ -f config/binary_rootfs/squashfs.sort ] then -- cgit v1.2.3