Fail install if no packages specified
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
61d0a83113
commit
b4d60a7ccb
1 changed files with 6 additions and 5 deletions
|
@ -106,12 +106,13 @@ command_install () {
|
||||||
|
|
||||||
mkdir -p "${work_dir}"
|
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 packages..."
|
||||||
echo " Installing package '${pkg}'"
|
_pacman "${PKGLIST}"
|
||||||
_pacman "${pkg}"
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ -d "${work_dir}/lib/modules/" ]; then
|
if [ -d "${work_dir}/lib/modules/" ]; then
|
||||||
echo "Updating kernel module dependencies"
|
echo "Updating kernel module dependencies"
|
||||||
|
|
Loading…
Add table
Reference in a new issue