Skip to content
Commit 62da62e9 authored by Sahil Kaushal's avatar Sahil Kaushal
Browse files

Add cleanup function to handle unexpected build-linux.sh fail



In case of an unexpected exit(SIGINT, SIGHUP, etc), the linux
repository might be left in an unstable state where the branches
i.e. n1sdp-branch and ubuntu-branch might point to incorrect
commits. This will result in a build failure even after running
"clean" command.

This patch adds a trap to catch such situtaions and clean the linux
folder git branches before exiting.

Signed-off-by: default avatarSahil Kaushal <Sahil.Kaushal@arm.com>
parent fd489eef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment