update-initramfs: stop buildprocess if any script is failing

Signed-off-by: Michael Prokop <mika@debian.org>
This commit is contained in:
Michael Prokop 2010-07-09 14:50:06 +02:00
parent b2e690b320
commit b65a48670e

View File

@ -504,11 +504,8 @@ if [ "${version}" = "all" ] \
OPTS="${OPTS} -y"
fi
for u_version in ${version_list}; do
# Don't stop if one version doesn't work.
set +e
verbose "Execute: ${0} -${mode} -k \"${u_version}\" ${OPTS}"
"${0}" -${mode} -k "${u_version}" ${OPTS}
set -e
done
exit 0
fi