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>
fi
# the file naming convention is servicename.wgt
# but some didnt respect it
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"
if [ -z "$WGTSERVICENAME" ];then
echo "WARN: failed to find name in config.xml, fallback to filename"
export WGTSERVICENAME="$WGTNAME"