apply-patches: catch unexpected failure
authorRomain Naour <romain.naour@gmail.com>
Tue, 5 Jul 2016 11:02:09 +0000 (13:02 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 5 Jul 2016 15:36:57 +0000 (17:36 +0200)
commit9cf1ad6cdb37c5be5772121896f4b13ec42c2b0d
tree69bf91432318ac22945d8fa6e4797750cda89cef
parent9e5e2ea9bb2836612ef76ff285cf2d2bfcea0ddb
apply-patches: catch unexpected failure

As reported by Sébastien Szymanski [1], the apply-patches script
doesn't stop if a tar command can't extract an archive.

Use "set -e" to exit immediately if a command return an error.

[1] http://patchwork.ozlabs.org/patch/626196

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/apply-patches.sh