summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2020-09-14 10:12:28 +0200
committerCorentin LABBE <clabbe@baylibre.com>2020-09-14 10:12:28 +0200
commit4a25de357684fbf3d0e280dc5697ac97d090ae6b (patch)
tree4301580da4747d821d20de16b5d0690e41d38d94 /common
parent1718c39f29f71b99d38065686770548f8e4333ee (diff)
SPEC-3550: fix parsing of id
The id could be not the first element, and so the parsing is wrong. Change-Id: I325aac6de4733a166c7be8e3515b85e9edff4365 Bug-AGL: SPEC-3550 Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Diffstat (limited to 'common')
-rwxr-xr-xcommon/scripts/application-lifecycle.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/scripts/application-lifecycle.sh b/common/scripts/application-lifecycle.sh
index 2674530..b9b3328 100755
--- a/common/scripts/application-lifecycle.sh
+++ b/common/scripts/application-lifecycle.sh
@@ -123,7 +123,7 @@ inspect_wgt() {
fi
# the file naming convention is servicename.wgt
# but some didnt respect it
- export WGTSERVICENAME=$(grep 'id=.*' config.xml | cut -d= -f2 | cut -d'"' -f2)
+ export WGTSERVICENAME=$(grep 'id=.*' config.xml | sed 's,^.*id=,id=,' | cut -d= -f2 | cut -d'"' -f2)
if [ -z "$WGTSERVICENAME" ];then
echo "WARN: failed to find name in config.xml, fallback to filename"
export WGTSERVICENAME="$WGTNAME"