SPEC-2903: Use a wrapper instead of constructing a command 40/22740/2
authorCorentin LABBE <clabbe@baylibre.com>
Mon, 21 Oct 2019 14:00:34 +0000 (16:00 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 21 Oct 2019 14:19:54 +0000 (14:19 +0000)
commit3f8568f7144055a870e00f99ae9c9c440eb3f2a6
treeed4dee85554dccc46facb082d31c495480609d9d
parentba2a97f4acb44194cc2a827e344d71f916d432b8
SPEC-2903: Use a wrapper instead of constructing a command

This patch change the way we ran afm-util commands by using a simple
wrapper.
Furthermore, since we are in a loop, let's reset all variable
(SERVICE_PLATFORM/etc..) to 0 at the beginning of the loop.

Extra-furthermore: restore the unzip error code test, but in non-fatal
way, since busybox unzip seems to dont like our CRC.

Bug-AGL: SPEC-2903

Change-Id: I5d7357fd74307ed69a6675beac57d8601fdcdb52
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
common/scripts/application-lifecycle.sh