Migrate a few uses of grep to In_list.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
This commit is contained in:
parent
912c054a7e
commit
c05c115684
|
@ -28,7 +28,7 @@ Arguments "${@}"
|
||||||
Read_conffile config/all config/common config/bootstrap config/chroot config/binary config/source
|
Read_conffile config/all config/common config/bootstrap config/chroot config/binary config/source
|
||||||
Set_defaults
|
Set_defaults
|
||||||
|
|
||||||
if ! echo "${LH_BINARY_IMAGES}" | grep -qs iso
|
if ! In_list iso "${LH_BINARY_IMAGES}"
|
||||||
then
|
then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -124,13 +124,12 @@ case "${LH_BOOTLOADER}" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "${LH_DEBIAN_INSTALLER}" != "live" ]
|
if In_list "stripped minimal" "${LH_PACKAGES_LISTS}"
|
||||||
then
|
then
|
||||||
case "${LH_PACKAGES_LISTS}" in
|
if [ "${LH_DEBIAN_INSTALLER}" != "live" ]
|
||||||
stripped|minimal)
|
then
|
||||||
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -m ${GENISOIMAGE_EXCLUDE}"
|
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -m ${GENISOIMAGE_EXCLUDE}"
|
||||||
;;
|
fi
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat > binary.sh << EOF
|
cat > binary.sh << EOF
|
||||||
|
|
|
@ -28,7 +28,7 @@ Arguments "${@}"
|
||||||
Read_conffile config/all config/common config/bootstrap config/chroot config/binary config/source
|
Read_conffile config/all config/common config/bootstrap config/chroot config/binary config/source
|
||||||
Set_defaults
|
Set_defaults
|
||||||
|
|
||||||
if ! echo "${LH_BINARY_IMAGES}" | grep -qs net
|
if ! In_list net "${LH_BINARY_IMAGES}"
|
||||||
then
|
then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -28,7 +28,7 @@ Arguments "${@}"
|
||||||
Read_conffile config/all config/common config/bootstrap config/chroot config/binary config/source
|
Read_conffile config/all config/common config/bootstrap config/chroot config/binary config/source
|
||||||
Set_defaults
|
Set_defaults
|
||||||
|
|
||||||
if ! echo "${LH_BINARY_IMAGES}" | grep -qs tar
|
if ! In_list tar "${LH_BINARY_IMAGES}"
|
||||||
then
|
then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -28,7 +28,7 @@ Arguments "${@}"
|
||||||
Read_conffile config/all config/common config/bootstrap config/chroot config/binary config/source
|
Read_conffile config/all config/common config/bootstrap config/chroot config/binary config/source
|
||||||
Set_defaults
|
Set_defaults
|
||||||
|
|
||||||
if ! echo "${LH_BINARY_IMAGES}" | grep -qs usb-hdd
|
if ! In_list usb-hdd "${LH_BINARY_IMAGES}"
|
||||||
then
|
then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -86,11 +86,10 @@ if [ "${LH_USE_FAKEROOT}" != "enabled" ]
|
||||||
then
|
then
|
||||||
if [ -z "${LH_BOOTSTRAP_FLAVOUR}" ]
|
if [ -z "${LH_BOOTSTRAP_FLAVOUR}" ]
|
||||||
then
|
then
|
||||||
case "${LH_PACKAGES_LISTS}" in
|
if In_list "stripped minimal" "${LH_PACKAGES_LISTS}"
|
||||||
stripped|minimal)
|
then
|
||||||
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --variant=minbase"
|
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --variant=minbase"
|
||||||
;;
|
fi
|
||||||
esac
|
|
||||||
else
|
else
|
||||||
case "${LH_BOOTSTRAP_FLAVOUR}" in
|
case "${LH_BOOTSTRAP_FLAVOUR}" in
|
||||||
stripped|minimal)
|
stripped|minimal)
|
||||||
|
|
|
@ -33,7 +33,7 @@ then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! echo "${LH_SOURCE_IMAGES}" | grep -qs iso
|
if ! In_list iso "${LH_SOURCE_IMAGES}"
|
||||||
then
|
then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -33,7 +33,7 @@ then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! echo "${LH_SOURCE_IMAGES}" | grep -qs net
|
if ! In_list net "${LH_SOURCE_IMAGES}"
|
||||||
then
|
then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -33,7 +33,7 @@ then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! echo "${LH_SOURCE_IMAGES}" | grep -qs tar
|
if ! In_list tar "${LH_SOURCE_IMAGES}"
|
||||||
then
|
then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -33,7 +33,7 @@ then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! echo "${LH_SOURCE_IMAGES}" | grep -qs usb-hdd
|
if ! In_list usb-hdd "${LH_SOURCE_IMAGES}"
|
||||||
then
|
then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue