[bin] bump_kernel_mod_package: exit on error

This commit is contained in:
Fabio Erculiani 2011-11-30 00:36:38 +01:00
parent f112e078af
commit 9da16d890e
1 changed files with 2 additions and 2 deletions

View File

@ -9,9 +9,9 @@ if [ "${#}" -lt 1 ]; then
fi
# build for latest kernel
KERNEL_DIR="/usr/src/linux-${running_kernel}" emerge "${@}"
KERNEL_DIR="/usr/src/linux-${running_kernel}" emerge "${@}" || exit 1
echo -5 | etc-update
eit commit
eit commit || exit 1
for kernel in $kernels; do
if [ "${kernel}" = "${running_kernel}" ]; then