Commit 9f520be5 authored by Dave Martin's avatar Dave Martin Committed by Will Deacon
Browse files

update_headers.sh: Cleanly report failure on error



If in intermediate step fails, update_headers.sh blindly continues
and may return success status.

To avoid errors going unnoticed when driving this script, exit and
report failure status as soon as something goes wrong.  For good
measure, also fail on expansion of undefined shell variables to aid
future maintainers.
Signed-off-by: default avatarDave Martin <Dave.Martin@arm.com>
Reviewed-by: Andre Przywara's avatarAndre Przywara <andre.przywara@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 3baf13c7
......@@ -7,6 +7,8 @@
# using the lib/modules/`uname -r`/source link.
########################################################################
set -ue
if [ "$#" -ge 1 ]
then
LINUX_ROOT="$1"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment