[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

View File

@ -9,9 +9,9 @@ if [ "${#}" -lt 1 ]; then
fi fi
# build for latest kernel # 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 echo -5 | etc-update
eit commit eit commit || exit 1
for kernel in $kernels; do for kernel in $kernels; do
if [ "${kernel}" = "${running_kernel}" ]; then if [ "${kernel}" = "${running_kernel}" ]; then