summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_rootfs
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-06-19 18:58:09 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:35 +0100
commita5e675792ae54c66b7c9ca470d3e47bc45960272 (patch)
tree10d4d6515009499293e100a8aacac4f87afd78a4 /helpers/lh_binary_rootfs
parent8474de1d6513d8e0d297737db057fe8dbd364a18 (diff)
downloadlive-build-a5e675792ae54c66b7c9ca470d3e47bc45960272.zip
live-build-a5e675792ae54c66b7c9ca470d3e47bc45960272.tar.gz
Replace another unweildy "if P1 || P2" statement with its "case" equivalent.
Diffstat (limited to 'helpers/lh_binary_rootfs')
-rwxr-xr-xhelpers/lh_binary_rootfs9
1 files changed, 5 insertions, 4 deletions
diff --git a/helpers/lh_binary_rootfs b/helpers/lh_binary_rootfs
index de634be..abd26ac 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