aboutsummaryrefslogtreecommitdiffstats
path: root/common/scripts/application-lifecycle.sh
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2020-09-10 14:37:20 +0200
committerCorentin LABBE <clabbe@baylibre.com>2020-09-10 14:37:20 +0200
commit1718c39f29f71b99d38065686770548f8e4333ee (patch)
tree9069fd0916176ea3f4f9b6b489deec73abf70094 /common/scripts/application-lifecycle.sh
parent4619ed83a8906fd6700850d70bf99d58bc9776ab (diff)
SPEC-3550: name could be in uppercasejellyfish_9.99.4jellyfish/9.99.49.99.4
In config.xml, name could be in uppercase, so let's use id which is lowercase. Change-Id: Ibc3e9e145692c7773f70a1308c7ff0de27e9f0bd Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Diffstat (limited to 'common/scripts/application-lifecycle.sh')
-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 ee3d790..2674530 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 '<name>' config.xml | cut -d'>' -f2 | cut -d'<' -f1)
+ export WGTSERVICENAME=$(grep 'id=.*' config.xml | 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"