support/apply-patches: re-instate set -e
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 5 Jul 2016 17:36:03 +0000 (19:36 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 6 Jul 2016 12:47:30 +0000 (14:47 +0200)
commitd5ae67b4f4b4256a392997f81c9668c6809aab3b
treecac46c8555f0fa87d9f20daa2320160a99b368d9
parent7e23692ece811ac11abeeb59337c14d5f79427de
support/apply-patches: re-instate set -e

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.

Be sure to ignore any expected error: when we check if a patch to be
applied has the same basename as an already applied patch, the grep
would fail when no such patch was already applied. We should not fail
in this case.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Cc: Romain Naour <romain.naour@openwide.fr>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Tested-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/apply-patches.sh