summaryrefslogtreecommitdiff
path: root/archiso
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-10-19 22:40:36 -0500
committerAaron Griffin <aaronmgriffin@gmail.com>2008-10-19 22:40:36 -0500
commitb4d60a7ccb59e5a8a76fff46c7090814769ccf49 (patch)
tree1120425987114cbc87708d59fb201b32e365f0ec /archiso
parent61d0a83113c1b2234153b0a3b71f664c334680d8 (diff)
downloadarchiso32-b4d60a7ccb59e5a8a76fff46c7090814769ccf49.tar.xz
Fail install if no packages specified
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'archiso')
-rwxr-xr-xarchiso/mkarchiso11
1 files changed, 6 insertions, 5 deletions
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"