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>
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"