From b4d60a7ccb59e5a8a76fff46c7090814769ccf49 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Sun, 19 Oct 2008 22:40:36 -0500 Subject: Fail install if no packages specified Signed-off-by: Aaron Griffin --- archiso/mkarchiso | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'archiso/mkarchiso') diff --git a/archiso/mkarchiso b/archiso/mkarchiso index 088df7e..53c0aee 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -106,12 +106,13 @@ command_install () { mkdir -p "${work_dir}" - echo "Installing packages..." + if [ "${PKGLIST}" = "" ]; then + echo "error: no packages to install" + exit 1 + fi - for pkg in ${PKGLIST}; do - echo " Installing package '${pkg}'" - _pacman "${pkg}" - done + echo "Installing packages..." + _pacman "${PKGLIST}" if [ -d "${work_dir}/lib/modules/" ]; then echo "Updating kernel module dependencies" -- cgit v1.2.3-70-g09d2